From 9bd2fef1a58b55cdf04a55ae4fb4b39b97fd1c83 Mon Sep 17 00:00:00 2001 From: cottonvibes Date: Mon, 20 Oct 2008 23:01:07 +0000 Subject: [PATCH] counters.c optimizations git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@222 a6443dda-0b58-4228-96e9-037be469359c --- pcsx2/Counters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/Counters.c b/pcsx2/Counters.c index 07ed563d1a..3e0887bdf4 100644 --- a/pcsx2/Counters.c +++ b/pcsx2/Counters.c @@ -67,12 +67,12 @@ void rcntSet() { } //Calculate HBlank - c = counters[4].CycleT - (cpuRegs.cycle - counters[4].sCycleT); + c = HBLANKCNT(0.5); //counters[4].CycleT - (cpuRegs.cycle - counters[4].sCycleT); if (c < nextCounter) nextCounter = c; //if(nextCounter > 0x1000) SysPrintf("Nextcounter %x HBlank %x VBlank %x\n", nextCounter, c, counters[5].CycleT - (cpuRegs.cycle - counters[5].sCycleT)); //Calculate VBlank - c = counters[5].CycleT - (cpuRegs.cycle - counters[5].sCycleT); + c = (VBLANKCNT(1) / 2); //counters[5].CycleT - (cpuRegs.cycle - counters[5].sCycleT); if (c < nextCounter) nextCounter = c; }