mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07: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
@ -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…
Reference in New Issue
Block a user