mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
CoreTiming: Add "Rush Frame Presentation" setting to throttle only once after each presentation for lower input latency.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "Common/ChunkFile.h"
|
||||
#include "Core/Config/GraphicsSettings.h"
|
||||
#include "Core/Config/MainSettings.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/HW/VideoInterface.h"
|
||||
#include "Core/Host.h"
|
||||
@@ -201,7 +202,13 @@ void Presenter::ViSwap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height,
|
||||
|
||||
if (!is_duplicate || !g_ActiveConfig.bSkipPresentingDuplicateXFBs)
|
||||
{
|
||||
Present(presentation_time);
|
||||
// If RushFramePresentation is enabled, ignore the proper time to present as soon as possible.
|
||||
// The goal is to achieve the lowest possible input latency.
|
||||
if (Config::Get(Config::MAIN_RUSH_FRAME_PRESENTATION))
|
||||
Present();
|
||||
else
|
||||
Present(presentation_time);
|
||||
|
||||
ProcessFrameDumping(ticks);
|
||||
|
||||
video_events.after_present_event.Trigger(present_info);
|
||||
|
||||
Reference in New Issue
Block a user