mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 04:39:10 +01:00
Prevent estimated time from flashing after slow shader compilation starts
This commit is contained in:
parent
4bce57b149
commit
56541b1ae5
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size
|
||||||
|
|
||||||
QString estimate;
|
QString estimate;
|
||||||
// If theres a drastic slowdown in the rate, then display an 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) {
|
if (!slow_shader_compile_start) {
|
||||||
slow_shader_start = high_resolution_clock::now();
|
slow_shader_start = high_resolution_clock::now();
|
||||||
slow_shader_compile_start = true;
|
slow_shader_compile_start = true;
|
||||||
|
|
Loading…
Reference in a new issue