mirror of
https://github.com/RPCS3/rpcs3
synced 2024-10-14 12:12:25 +00:00
Ensure PPU Compilation Hint is refreshed
This commit is contained in:
parent
929be0b4e6
commit
6d280c5f3c
|
@ -210,10 +210,16 @@ void progress_dialog_server::operator()()
|
|||
const u64 remaining_usec = pdone ? utils::rational_mul<u64>(passed_usec, static_cast<u64>(ptotal) - pdone, pdone) : (passed_usec * ptotal);
|
||||
|
||||
// Only show compile notification if we estimate at least 100ms
|
||||
if (remaining_usec >= 100'000ULL && (!ppu_cue_refs || !*ppu_cue_refs))
|
||||
if (remaining_usec >= 100'000ULL)
|
||||
{
|
||||
if (!ppu_cue_refs || !*ppu_cue_refs)
|
||||
{
|
||||
ppu_cue_refs = rsx::overlays::show_ppu_compile_notification();
|
||||
}
|
||||
|
||||
// Make sure to update any pending messages. PPU compilation may freeze the image.
|
||||
rsx::overlays::refresh_message_queue();
|
||||
}
|
||||
}
|
||||
|
||||
if (pdone >= ptotal)
|
||||
|
@ -222,6 +228,8 @@ void progress_dialog_server::operator()()
|
|||
{
|
||||
*ppu_cue_refs = 0;
|
||||
ppu_cue_refs.reset();
|
||||
|
||||
rsx::overlays::refresh_message_queue();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue