From 0c720b9144eefaa55c654035a046e52c42126053 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 2 Jul 2013 00:43:28 +0300 Subject: [PATCH] 32x: adjust sh2 cycles again MK2 doesn't play it's animations if slave is clocked too slow.. the more we underclock slave, the more often animations get stuck Why does it need so many cycles? --- pico/pico.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pico/pico.h b/pico/pico.h index e5e832b..b5d34f3 100644 --- a/pico/pico.h +++ b/pico/pico.h @@ -212,12 +212,14 @@ extern unsigned short *PicoCramHigh; // pointer to CRAM buff (0x40 shorts), conv extern void (*PicoPrepareCram)(); // prepares PicoCramHigh for renderer to use // pico.c (32x) -// multipliers against 68k clock +// multipliers against 68k clock (7670442) +// normally * 3, but effectively slower due to high latencies everywhere +// however using something lower breaks MK2 animations extern int p32x_msh2_multiplier; extern int p32x_ssh2_multiplier; #define SH2_MULTI_SHIFT 10 -#define MSH2_MULTI_DEFAULT ((1 << SH2_MULTI_SHIFT) * 21 / 10) -#define SSH2_MULTI_DEFAULT ((1 << SH2_MULTI_SHIFT) * 3 / 2) +#define MSH2_MULTI_DEFAULT ((1 << SH2_MULTI_SHIFT) * 3) +#define SSH2_MULTI_DEFAULT ((1 << SH2_MULTI_SHIFT) * 3) // 32x/draw.c void PicoDraw32xSetFrameMode(int is_on, int only_32x); -- 2.39.2