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
commitc7516a14eb80f41d3c75ef0aa74d8123fbe64868 (patch)
tree8a65a8fe8abaca64dcce91c155b028aa4c7a4cae /src/yuzu/loading_screen.cpp
parent4084b0caecd6f9e2b830b076e44db91a2652bac6 (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;