diff options
| author | 2019-01-20 18:22:29 -0700 | |
|---|---|---|
| committer | 2019-01-20 18:31:35 -0700 | |
| commit | 56541b1ae5078ed0b47fefb963d38b46c3f7858b (patch) | |
| tree | 8a65a8fe8abaca64dcce91c155b028aa4c7a4cae /src | |
| parent | Move progress bar style into constexpr strings (diff) | |
| download | yuzu-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.cpp | 2 |
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; |