mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
RSX: update shader loading dialog at 60 fps
Looks much smoother
This commit is contained in:
parent
82c86ed2f7
commit
df79b6c238
@ -521,10 +521,10 @@ namespace rsx
|
||||
|
||||
worker(stop_at);
|
||||
|
||||
// Only update the screen at about 10fps since updating it everytime slows down the process
|
||||
// Only update the screen at about 60fps since updating it everytime slows down the process
|
||||
steady_clock::time_point now = steady_clock::now();
|
||||
processed_since_last_update += inc;
|
||||
if ((std::chrono::duration_cast<std::chrono::milliseconds>(now - last_update) > 100ms) || (stop_at == entry_count))
|
||||
if ((std::chrono::duration_cast<std::chrono::milliseconds>(now - last_update) > 16ms) || (stop_at == entry_count))
|
||||
{
|
||||
dlg->update_msg(step, get_message(step, stop_at, entry_count));
|
||||
dlg->inc_value(step, processed_since_last_update);
|
||||
@ -544,7 +544,7 @@ namespace rsx
|
||||
u32 last_update_progress = 0;
|
||||
while ((current_progress < entry_count) && !Emu.IsStopped())
|
||||
{
|
||||
std::this_thread::sleep_for(100ms); // Around 10fps should be good enough
|
||||
std::this_thread::sleep_for(16ms); // Around 60fps should be good enough
|
||||
|
||||
current_progress = std::min(processed.load(), entry_count);
|
||||
processed_since_last_update = current_progress - last_update_progress;
|
||||
|
Loading…
Reference in New Issue
Block a user