mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
HW/VideoInterface: Selectively throttle on "VBlank" based on "Immediate XFB" being enabled.
This commit is contained in:
parent
16260040e0
commit
d4f68cb164
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user