summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorMikael Brunnhede2019-05-05 23:58:30 +0200
committerMikael Brunnhede2019-05-05 23:58:30 +0200
commit30841f5881b3b63e64680a502c541ac583bcccfd (patch)
tree5a58bba7503650b97eaf60bc72fba0f7d95bad3f /Makefile.common
parent6064e58855c7f3acc76ad55ce4ea2af985fe3c59 (diff)
downloadsnes9x2002-30841f5881b3b63e64680a502c541ac583bcccfd.tar.gz
snes9x2002-30841f5881b3b63e64680a502c541ac583bcccfd.tar.bz2
snes9x2002-30841f5881b3b63e64680a502c541ac583bcccfd.zip
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.
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index 5316a49..b7078e2 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -118,4 +118,10 @@ CODE_DEFINES = -fomit-frame-pointer
endif
endif
+ifeq ($(LAGFIX), 1)
+ifneq ($(ASM_CPU), 1)
+DEFINES += -DLAGFIX
+endif
+endif
+
COMMON_DEFINES += $(CODE_DEFINES) $(WARNINGS_DEFINES) $(fpic)