mirror of
https://github.com/RPCS3/rpcs3
synced 2024-09-15 22:30:28 +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);
|
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
|
// 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();
|
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)
|
if (pdone >= ptotal)
|
||||||
|
@ -222,6 +228,8 @@ void progress_dialog_server::operator()()
|
||||||
{
|
{
|
||||||
*ppu_cue_refs = 0;
|
*ppu_cue_refs = 0;
|
||||||
ppu_cue_refs.reset();
|
ppu_cue_refs.reset();
|
||||||
|
|
||||||
|
rsx::overlays::refresh_message_queue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue