mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-14 13:21:15 +00:00
SystemTimers: Throttle prior to performance marker.
This commit is contained in:
parent
aa624d8ba8
commit
9ac9813492
@ -125,6 +125,8 @@ void SystemTimersManager::GPUSleepCallback(Core::System& system, u64 userdata, s
|
||||
void SystemTimersManager::PerfTrackerCallback(Core::System& system, u64 userdata, s64 cycles_late)
|
||||
{
|
||||
auto& core_timing = system.GetCoreTiming();
|
||||
// Throttle for accurate performance metrics.
|
||||
core_timing.Throttle(core_timing.GetTicks() - cycles_late);
|
||||
g_perf_metrics.CountPerformanceMarker(system, cycles_late);
|
||||
|
||||
// Call this performance tracker again in 1/100th of a second.
|
||||
|
Loading…
x
Reference in New Issue
Block a user