mirror of https://github.com/PCSX2/pcsx2.git
counters.c optimizations
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@222 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
parent
747cded0e1
commit
9bd2fef1a5
|
@ -67,12 +67,12 @@ void rcntSet() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Calculate HBlank
|
//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 (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));
|
//if(nextCounter > 0x1000) SysPrintf("Nextcounter %x HBlank %x VBlank %x\n", nextCounter, c, counters[5].CycleT - (cpuRegs.cycle - counters[5].sCycleT));
|
||||||
|
|
||||||
//Calculate VBlank
|
//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;
|
if (c < nextCounter) nextCounter = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue