mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoInterface: Throttle before VBlank statistics counting.
This commit is contained in:
@ -839,6 +839,11 @@ void VideoInterfaceManager::EndField(FieldType field, u64 ticks)
|
|||||||
if (!Config::Get(Config::GFX_HACK_EARLY_XFB_OUTPUT))
|
if (!Config::Get(Config::GFX_HACK_EARLY_XFB_OUTPUT))
|
||||||
OutputField(field, ticks);
|
OutputField(field, ticks);
|
||||||
|
|
||||||
|
// Note: We really only need to Throttle prior to to presentation,
|
||||||
|
// but it is needed here if we want accurate "VBlank" statistics,
|
||||||
|
// when using GPU-on-Thread or Early/Immediate XFB.
|
||||||
|
m_system.GetCoreTiming().Throttle(ticks);
|
||||||
|
|
||||||
g_perf_metrics.CountVBlank();
|
g_perf_metrics.CountVBlank();
|
||||||
VIEndFieldEvent::Trigger();
|
VIEndFieldEvent::Trigger();
|
||||||
Core::OnFrameEnd(m_system);
|
Core::OnFrameEnd(m_system);
|
||||||
|
Reference in New Issue
Block a user