From dd4b2eaa7fc19e3988b6a6a6e41f0784126ef7b3 Mon Sep 17 00:00:00 2001 From: "SND\\edgbla_cp" Date: Sun, 4 Jul 2010 05:32:58 +0000 Subject: GPUvBlank (for gpuBladeSoft now, experimental). git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@54133 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/psxcounters.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libpcsxcore/psxcounters.c') diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index fed43c69..ebfe6296 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -282,19 +282,22 @@ void psxRcntUpdate() SPU_async( SpuUpdInterval[Config.PsxType] * rcnts[3].target ); } } - /* - // For the best times. :D + // VSync irq. if( hSyncCount == VBlankStart[Config.PsxType] ) { - setIrq( 0x01 ); + GPU_vBlank( 1 ); + + // For the best times. :D + //setIrq( 0x01 ); } - */ + // Update lace. (with InuYasha fix) if( hSyncCount >= (Config.VSyncWA ? HSyncTotal[Config.PsxType] / BIAS : HSyncTotal[Config.PsxType]) ) { hSyncCount = 0; + GPU_vBlank( 0 ); setIrq( 0x01 ); GPU_updateLace(); -- cgit v1.2.3