summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar James Rowe2019-01-20 18:22:29 -0700
committerGravatar James Rowe2019-01-20 18:31:35 -0700
commit56541b1ae5078ed0b47fefb963d38b46c3f7858b (patch)
tree8a65a8fe8abaca64dcce91c155b028aa4c7a4cae /src
parentMove progress bar style into constexpr strings (diff)
downloadyuzu-56541b1ae5078ed0b47fefb963d38b46c3f7858b.tar.gz
yuzu-56541b1ae5078ed0b47fefb963d38b46c3f7858b.tar.xz
yuzu-56541b1ae5078ed0b47fefb963d38b46c3f7858b.zip
Prevent estimated time from flashing after slow shader compilation starts
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/loading_screen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/loading_screen.cpp b/src/yuzu/loading_screen.cpp
index 608ab6f02..ffa7f5bb2 100644
--- a/src/yuzu/loading_screen.cpp
+++ b/src/yuzu/loading_screen.cpp
@@ -141,7 +141,7 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size
141 141
142 QString estimate; 142 QString estimate;
143 // If theres a drastic slowdown in the rate, then display an estimate 143 // If theres a drastic slowdown in the rate, then display an estimate
144 if (now - previous_time > milliseconds{20}) { 144 if (now - previous_time > milliseconds{50} || slow_shader_compile_start) {
145 if (!slow_shader_compile_start) { 145 if (!slow_shader_compile_start) {
146 slow_shader_start = high_resolution_clock::now(); 146 slow_shader_start = high_resolution_clock::now();
147 slow_shader_compile_start = true; 147 slow_shader_compile_start = true;