aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/loading_screen.cpp
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2019-01-20 18:22:29 -0700
committerJames Rowe <jroweboy@gmail.com>2019-01-20 18:31:35 -0700
commit56541b1ae5078ed0b47fefb963d38b46c3f7858b (patch)
tree8a65a8fe8abaca64dcce91c155b028aa4c7a4cae /src/yuzu/loading_screen.cpp
parent4bce57b1495aec153041da0cb5bd5be8f518aea8 (diff)
Prevent estimated time from flashing after slow shader compilation starts
Diffstat (limited to 'src/yuzu/loading_screen.cpp')
-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 608ab6f023..ffa7f5bb26 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
QString estimate;
// If theres a drastic slowdown in the rate, then display an estimate
- if (now - previous_time > milliseconds{20}) {
+ if (now - previous_time > milliseconds{50} || slow_shader_compile_start) {
if (!slow_shader_compile_start) {
slow_shader_start = high_resolution_clock::now();
slow_shader_compile_start = true;