mirror of https://github.com/PCSX2/pcsx2.git
forgot to change this...
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@241 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
parent
86c35c57b0
commit
4390e0a922
|
@ -140,7 +140,6 @@ u64 GetCPUTicks()
|
||||||
|
|
||||||
void UpdateVSyncRate() {
|
void UpdateVSyncRate() {
|
||||||
|
|
||||||
counters[4].count = 0; // Set number of scanlines/hblanks to zero
|
|
||||||
counters[4].mode = MODE_HRENDER; // Counter 4 takes care of scanlines, so set the mode to HRENDER (drawing part of scanline)
|
counters[4].mode = MODE_HRENDER; // Counter 4 takes care of scanlines, so set the mode to HRENDER (drawing part of scanline)
|
||||||
counters[4].sCycle = cpuRegs.cycle; // Update Counter 4's Start Cycle to match CPU's cycle
|
counters[4].sCycle = cpuRegs.cycle; // Update Counter 4's Start Cycle to match CPU's cycle
|
||||||
|
|
||||||
|
@ -427,7 +426,7 @@ void vSync()
|
||||||
{
|
{
|
||||||
hScanline();
|
hScanline();
|
||||||
|
|
||||||
if ((cpuRegs.cycle - counters[5].sCycle) >= (VSYNC_ / 2)) {
|
if ((cpuRegs.cycle - counters[5].sCycle) >= (VSYNC_HALF_)) {
|
||||||
if (counters[5].mode == MODE_VSYNC) {
|
if (counters[5].mode == MODE_VSYNC) {
|
||||||
VSyncEnd();
|
VSyncEnd();
|
||||||
counters[5].mode = MODE_VRENDER;
|
counters[5].mode = MODE_VRENDER;
|
||||||
|
|
Loading…
Reference in New Issue