aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotaz2011-12-05 00:27:00 +0200
committernotaz2011-12-05 01:08:36 +0200
commit8bbbd0911c079ff0cc3ed5446a001612d7bbc157 (patch)
treeee1c1f6fac6cc54a539a5d190ee6dfa54794f206
parent6c036261062e5ab1fe3826268966ef324de3787f (diff)
downloadpcsx_rearmed-8bbbd0911c079ff0cc3ed5446a001612d7bbc157.tar.gz
pcsx_rearmed-8bbbd0911c079ff0cc3ed5446a001612d7bbc157.tar.bz2
pcsx_rearmed-8bbbd0911c079ff0cc3ed5446a001612d7bbc157.zip
let's try alternative vsync timing
-rw-r--r--libpcsxcore/psxcounters.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c
index 6f82abd..7317c87 100644
--- a/libpcsxcore/psxcounters.c
+++ b/libpcsxcore/psxcounters.c
@@ -294,11 +294,13 @@ void psxRcntUpdate()
// VSync irq.
if( hSyncCount == VBlankStart[Config.PsxType] )
{
- //if( !(HW_GPU_STATUS & PSXGPU_ILACE) ) // hmh
+ if( !(HW_GPU_STATUS & PSXGPU_ILACE) )
HW_GPU_STATUS |= PSXGPU_LCF;
- // For the best times. :D
- //setIrq( 0x01 );
+ setIrq( 0x01 );
+
+ EmuUpdate();
+ GPU_updateLace();
}
// Update lace. (with InuYasha fix)
@@ -307,11 +309,6 @@ void psxRcntUpdate()
hSyncCount = 0;
frame_counter++;
- setIrq( 0x01 );
-
- EmuUpdate();
- GPU_updateLace();
-
HW_GPU_STATUS &= ~PSXGPU_LCF;
if( HW_GPU_STATUS & PSXGPU_ILACE )
HW_GPU_STATUS |= frame_counter << 31;