From 30841f5881b3b63e64680a502c541ac583bcccfd Mon Sep 17 00:00:00 2001 From: Mikael Brunnhede Date: Sun, 5 May 2019 23:58:30 +0200 Subject: Port the input lag fix already present in the other snes9x cores. With this fix active, the main loop exit occurs right after generating the finished frame, but before reading the input. This means each new frame begins with reading input, then running game logic, ensuring the input used is as fresh as possible. --- src/globals.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/globals.c') diff --git a/src/globals.c b/src/globals.c index 8d09213..f7bfe5e 100644 --- a/src/globals.c +++ b/src/globals.c @@ -162,6 +162,10 @@ uint32 current_graphic_format = RGB565; uint8 GetBank = 0; SCheatData Cheat; +#ifdef LAGFIX +bool8 finishedFrame = false; +#endif + SoundStatus so; SSoundData SoundData; int Echo [24000]; -- cgit v1.2.3