File speed_limit.diff of Package mupen64plus

--- source/mupen64plus-core/src/main/main.c.orig	2015-08-02 17:16:37.000000000 +0200
+++ source/mupen64plus-core/src/main/main.c	2015-11-06 17:28:51.742574141 +0100
@@ -737,7 +737,7 @@
     unsigned int CurrentFPSTime;
     static unsigned int LastFPSTime = 0;
     static int VITotalDelta;
-    static int VIDeltas[64];
+    static int VIDeltas[256];
     static unsigned int VIDeltasIndex;
 
     double VILimitMilliseconds = 1000.0 / ROM_PARAMS.vilimit;
@@ -786,7 +786,7 @@
     LastFPSTime = CurrentFPSTime ;
     VITotalDelta += ThisFrameDelta - VIDeltas[VIDeltasIndex];
     VIDeltas[VIDeltasIndex] = ThisFrameDelta;
-    VIDeltasIndex = (VIDeltasIndex + 1) & 63;
+    VIDeltasIndex = (VIDeltasIndex + 1) & 255;
 
     timed_section_end(TIMED_SECTION_IDLE);
 }
openSUSE Build Service is sponsored by