mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Merge pull request #7563 from delroth/crashfix
SystemTimers: fix a 1-in-1000 crash happening in throttler performance reporting
This commit is contained in:
commit
f1c41c9a62
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ double GetEstimatedEmulationPerformance()
|
|||
u64 ts_now, ts_before; // In microseconds
|
||||
{
|
||||
std::lock_guard<std::mutex> lk(s_emu_to_real_time_mutex);
|
||||
size_t index_now = s_emu_to_real_time_index == 0 ? s_emu_to_real_time_ring_buffer.size() :
|
||||
size_t index_now = s_emu_to_real_time_index == 0 ? s_emu_to_real_time_ring_buffer.size() - 1 :
|
||||
s_emu_to_real_time_index - 1;
|
||||
size_t index_before = s_emu_to_real_time_index;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue