From eab5bcac0029e4e298e1f194133c21580098508d Mon Sep 17 00:00:00 2001 From: antonioginer Date: Sat, 16 Nov 2019 22:06:13 +0100 Subject: Remove up to one frame of input latency. (#5901) * Remove up to one frame of input latency. Makes MAME virtually lagless on VRR monitors. * Use empty parentheses and clean interface member calls * Add new option -instant_blit to make this feature optional * Rename new option to -lowlatency, -ll --- src/osd/uwp/video.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/osd/uwp/video.cpp') diff --git a/src/osd/uwp/video.cpp b/src/osd/uwp/video.cpp index f59b59c171b..9ed9a6c98d3 100644 --- a/src/osd/uwp/video.cpp +++ b/src/osd/uwp/video.cpp @@ -103,15 +103,22 @@ void windows_osd_interface::update(bool skip_redraw) // profiler_mark(PROFILER_END); } - // poll the joystick values here - winwindow_process_events(machine(), true, false); - poll_input(machine()); - check_osd_inputs(); // if we're running, disable some parts of the debugger if ((machine().debug_flags & DEBUG_FLAG_OSD_ENABLED) != 0) debugger_update(); } +//============================================================ +// input_update +//============================================================ + +void windows_osd_interface::input_update() +{ + // poll the joystick values here + winwindow_process_events(machine(), true, false); + poll_input(machine()); + check_osd_inputs(); +} //============================================================ // check_osd_inputs -- cgit v1.2.3