HW/VideoInterface: Selectively throttle on "VBlank" based on "Immediate XFB" being enabled.

This commit is contained in:
Jordan Woyak 2025-10-27 05:25:25 -05:00
parent 16260040e0
commit d4f68cb164

View File

@ -886,10 +886,10 @@ void VideoInterfaceManager::EndField(FieldType field, u64 ticks)
// Note: OutputField above doesn't present when using GPU-on-Thread or Early/Immediate XFB, // Note: OutputField above doesn't present when using GPU-on-Thread or Early/Immediate XFB,
// giving "VBlank" measurements here poor pacing without a Throttle call. // giving "VBlank" measurements here poor pacing without a Throttle call.
// If the user actually wants the data, we'll Throttle to make the numbers nice. // We'll throttle so long as Immediate XFB isn't enabled.
const bool is_vblank_data_wanted = g_ActiveConfig.bShowVPS || g_ActiveConfig.bShowVTimes || // That setting intends to minimize input latency and throttling would be counterproductive.
g_ActiveConfig.bLogRenderTimeToFile || // The Rush Frame Presentation setting is handled by Throttle itself.
g_ActiveConfig.bShowGraphs; const bool is_vblank_data_wanted = !g_ActiveConfig.bImmediateXFB;
if (is_vblank_data_wanted) if (is_vblank_data_wanted)
m_system.GetCoreTiming().Throttle(ticks); m_system.GetCoreTiming().Throttle(ticks);