summaryrefslogtreecommitdiffstats
path: root/src/yuzu
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-12-02 20:20:43 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-12-02 20:20:43 +0100
commit762b8ad448369cc770beae4d8368a6258b13709e (patch)
treecff2c5d404b77e93e875fbf40cf78ea6d30d32b0 /src/yuzu
parentMerge pull request #7483 from zhaobot/tx-update-20211201022129 (diff)
downloadyuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar.gz
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar.bz2
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar.lz
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar.xz
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar.zst
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.zip
Diffstat (limited to 'src/yuzu')
-rw-r--r--src/yuzu/loading_screen.cpp4
-rw-r--r--src/yuzu/loading_screen.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/yuzu/loading_screen.cpp b/src/yuzu/loading_screen.cpp
index ae842306c..b001b8c23 100644
--- a/src/yuzu/loading_screen.cpp
+++ b/src/yuzu/loading_screen.cpp
@@ -136,7 +136,7 @@ void LoadingScreen::OnLoadComplete() {
void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size_t value,
std::size_t total) {
using namespace std::chrono;
- const auto now = high_resolution_clock::now();
+ const auto now = steady_clock::now();
// reset the timer if the stage changes
if (stage != previous_stage) {
ui->progress_bar->setStyleSheet(QString::fromUtf8(progressbar_style[stage]));
@@ -160,7 +160,7 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size
// If theres a drastic slowdown in the rate, then display an estimate
if (now - previous_time > milliseconds{50} || slow_shader_compile_start) {
if (!slow_shader_compile_start) {
- slow_shader_start = high_resolution_clock::now();
+ slow_shader_start = steady_clock::now();
slow_shader_compile_start = true;
slow_shader_first_value = value;
}
diff --git a/src/yuzu/loading_screen.h b/src/yuzu/loading_screen.h
index 801d08e1a..29155a77c 100644
--- a/src/yuzu/loading_screen.h
+++ b/src/yuzu/loading_screen.h
@@ -84,8 +84,8 @@ private:
// shaders, it will start quickly but end slow if new shaders were added since previous launch.
// These variables are used to detect the change in speed so we can generate an ETA
bool slow_shader_compile_start = false;
- std::chrono::high_resolution_clock::time_point slow_shader_start;
- std::chrono::high_resolution_clock::time_point previous_time;
+ std::chrono::steady_clock::time_point slow_shader_start;
+ std::chrono::steady_clock::time_point previous_time;
std::size_t slow_shader_first_value = 0;
};