aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornotaz2012-12-11 01:37:33 +0200
committernotaz2012-12-11 02:22:31 +0200
commit5ca2ec64779fee99d0fc347330a83ae5e982d282 (patch)
tree704e0496dec15b2bec08fec456ff28db98f78d25 /frontend
parent3601e36bd526c63c842f68b2ff6cac82954e5e7e (diff)
downloadpcsx_rearmed-5ca2ec64779fee99d0fc347330a83ae5e982d282.tar.gz
pcsx_rearmed-5ca2ec64779fee99d0fc347330a83ae5e982d282.tar.bz2
pcsx_rearmed-5ca2ec64779fee99d0fc347330a83ae5e982d282.zip
libretro: set cycle_multiplier
Diffstat (limited to 'frontend')
-rw-r--r--frontend/libretro.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index 4e509a0..3431685 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -437,6 +437,15 @@ void retro_init(void)
level = 1;
environ_cb(RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL, &level);
+ /* Set how much slower PSX CPU runs * 100 (so that 200 is 2 times)
+ * we have to do this because cache misses and some IO penalties
+ * are not emulated. Warning: changing this may break compatibility. */
+#ifdef __ARM_ARCH_7A__
+ cycle_multiplier = 175;
+#else
+ cycle_multiplier = 200;
+#endif
+
McdDisable[0] = 0;
McdDisable[1] = 1;
init_memcard(Mcd1Data);