From e7aac0621a351feda374bb722729c0af500b62d4 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 5 Jul 2008 16:01:03 +0000 Subject: [PATCH] svp hack, as nonacc mode is gone git-svn-id: file:///home/notaz/opt/svn/PicoDrive@522 be3aeb3a-fb24-0410-a615-afba39da0efa --- Pico/carthw/svp/svp.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Pico/carthw/svp/svp.c b/Pico/carthw/svp/svp.c index 0c7585aa..4e01a923 100644 --- a/Pico/carthw/svp/svp.c +++ b/Pico/carthw/svp/svp.c @@ -45,8 +45,19 @@ static void PicoSVPReset(void) } -static void PicoSVPLine(int count) +static void PicoSVPLine(void) { + int count = 1; +#if defined(ARM) || defined(PSP) + // performance hack + static int delay_lines = 0; + delay_lines++; + if ((Pico.m.scanline&0xf) != 0xf && Pico.m.scanline != 261 && Pico.m.scanline != 311) + return; + count = delay_lines; + delay_lines = 0; +#endif + #ifndef PSP if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready) ssp1601_dyn_run(PicoSVPCycles * count); -- 2.39.5