summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/video.cpp
diff options
context:
space:
mode:
author antonioginer <antonioginer@users.noreply.github.com>2019-11-16 22:06:13 +0100
committer R. Belmont <rb6502@users.noreply.github.com>2019-11-16 16:06:13 -0500
commiteab5bcac0029e4e298e1f194133c21580098508d (patch)
tree6f7f3fd423089b85f15b09956ce7912f180bed0b /src/osd/sdl/video.cpp
parent7fc2f6805118f1e25c5e0b2a971f31e4f1b3b251 (diff)
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
Diffstat (limited to 'src/osd/sdl/video.cpp')
-rw-r--r--src/osd/sdl/video.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/osd/sdl/video.cpp b/src/osd/sdl/video.cpp
index 88bc1b51ce4..b8ea713d202 100644
--- a/src/osd/sdl/video.cpp
+++ b/src/osd/sdl/video.cpp
@@ -109,16 +109,24 @@ void sdl_osd_interface::update(bool skip_redraw)
// profiler_mark(PROFILER_END);
}
- // poll the joystick values here
- downcast<sdl_osd_interface&>(machine().osd()).poll_inputs(machine());
-
- check_osd_inputs(machine());
// if we're running, disable some parts of the debugger
if ((machine().debug_flags & DEBUG_FLAG_OSD_ENABLED) != 0)
debugger_update();
}
//============================================================
+// input_update
+//============================================================
+
+void sdl_osd_interface::input_update()
+{
+ // poll the joystick values here
+ process_events_buf();
+ poll_inputs(machine());
+ check_osd_inputs(machine());
+}
+
+//============================================================
// check_osd_inputs
//============================================================