aboutsummaryrefslogtreecommitdiff
path: root/patches/snes9x2002
diff options
context:
space:
mode:
authorneonloop2022-03-27 17:11:07 +0000
committerneonloop2022-03-27 17:11:07 +0000
commit5a5baa280f725d25f38f1025d92fb521fdba8940 (patch)
tree076f7ee822cf92f9327a3b4aaeb465a5cdaa41b2 /patches/snes9x2002
parent8870de89ba1ad9ae08e5f4c7602007b05fab5f3e (diff)
downloadpicoarch-5a5baa280f725d25f38f1025d92fb521fdba8940.tar.gz
picoarch-5a5baa280f725d25f38f1025d92fb521fdba8940.tar.bz2
picoarch-5a5baa280f725d25f38f1025d92fb521fdba8940.zip
Updates patches for upstream snes9x2002 changes
Diffstat (limited to 'patches/snes9x2002')
-rw-r--r--patches/snes9x2002/0001-frameskip-interval-max.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/snes9x2002/0001-frameskip-interval-max.patch b/patches/snes9x2002/0001-frameskip-interval-max.patch
new file mode 100644
index 0000000..737936d
--- /dev/null
+++ b/patches/snes9x2002/0001-frameskip-interval-max.patch
@@ -0,0 +1,33 @@
+diff --git a/libretro/libretro.c b/libretro/libretro.c
+index 5f947ef..dc48f3d 100644
+--- a/libretro/libretro.c
++++ b/libretro/libretro.c
+@@ -105,10 +105,6 @@ typedef enum
+ FRAMESKIP_FIXED_INTERVAL
+ } frameskip_type_t;
+
+-/* Maximum number of consecutive frames that
+- * can be skipped */
+-#define FRAMESKIP_MAX 30
+-
+ static frameskip_type_t frameskip_type = FRAMESKIP_NONE;
+ static unsigned frameskip_threshold = 0;
+ static unsigned frameskip_interval = 0;
+@@ -638,7 +634,7 @@ void retro_run (void)
+ retro_audio_buff_underrun;
+
+ if (!skip_frame ||
+- (frameskip_counter >= FRAMESKIP_MAX))
++ (frameskip_counter >= frameskip_interval))
+ {
+ skip_frame = false;
+ frameskip_counter = 0;
+@@ -652,7 +648,7 @@ void retro_run (void)
+ (retro_audio_buff_occupancy < frameskip_threshold);
+
+ if (!skip_frame ||
+- (frameskip_counter >= FRAMESKIP_MAX))
++ (frameskip_counter >= frameskip_interval))
+ {
+ skip_frame = false;
+ frameskip_counter = 0;