svp hack, as nonacc mode is gone
authornotaz <notasas@gmail.com>
Sat, 5 Jul 2008 16:01:03 +0000 (16:01 +0000)
committernotaz <notasas@gmail.com>
Sat, 5 Jul 2008 16:01:03 +0000 (16:01 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@522 be3aeb3a-fb24-0410-a615-afba39da0efa

Pico/carthw/svp/svp.c

index 0c7585a..4e01a92 100644 (file)
@@ -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);