From: notaz Date: Sat, 5 Jul 2008 16:01:03 +0000 (+0000) Subject: svp hack, as nonacc mode is gone X-Git-Tag: v1.85~440 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7aac0621a351feda374bb722729c0af500b62d4;p=picodrive.git svp hack, as nonacc mode is gone git-svn-id: file:///home/notaz/opt/svn/PicoDrive@522 be3aeb3a-fb24-0410-a615-afba39da0efa --- 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);