X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcarthw%2Fsvp%2Fsvp.c;h=be9414e2e181546c5bc5467cd88ad338f145b77a;hb=efcba75f8a730340df6c1b679a207723f98d1ee6;hp=0c7585aa597b106d8fbe514e73ba2731e6dcdcf7;hpb=6fc5714482ecd4da20c3d5189b607afafc72b248;p=picodrive.git diff --git a/Pico/carthw/svp/svp.c b/Pico/carthw/svp/svp.c index 0c7585a..be9414e 100644 --- a/Pico/carthw/svp/svp.c +++ b/Pico/carthw/svp/svp.c @@ -6,7 +6,7 @@ // For commercial use, separate licencing terms must be obtained. -#include "../../PicoInt.h" +#include "../../pico_int.h" #include "compiler.h" #ifdef __GP2X__ #include @@ -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);