X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fpsxcounters.c;h=fc4c5b1d2046443dbc4ce74fd1cd76615c617a0b;hp=044d0d3817f885da1f4a42e751fd67f831c3d943;hb=bedfea3863c3c48699048ea0d6dd07893221403c;hpb=cefe86b749ed699cd8af96e4875bb4e90e967569 diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index 044d0d38..fc4c5b1d 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -22,6 +22,7 @@ */ #include "psxcounters.h" +#include "debug.h" /******************************************************************************/ @@ -66,7 +67,7 @@ static const u32 CountToTarget = 1; static const u32 FrameRate[] = { 60, 50 }; static const u32 VBlankStart[] = { 240, 256 }; -static const u32 HSyncTotal[] = { 262, 312 }; +static const u32 HSyncTotal[] = { 263, 313 }; static const u32 SpuUpdInterval[] = { 23, 22 }; static const s32 VerboseLevel = 0; @@ -100,7 +101,7 @@ void verboseLog( s32 level, const char *str, ... ) vsprintf( buf, str, va ); va_end( va ); - printf( buf ); + printf( "%s", buf ); fflush( stdout ); } } @@ -286,7 +287,7 @@ void psxRcntUpdate() // VSync irq. if( hSyncCount == VBlankStart[Config.PsxType] ) { - GPU_vBlank( 1 ); + GPU_vBlank( 1, &hSyncCount ); // For the best times. :D //setIrq( 0x01 ); @@ -297,7 +298,7 @@ void psxRcntUpdate() { hSyncCount = 0; - GPU_vBlank( 0 ); + GPU_vBlank( 0, &hSyncCount ); setIrq( 0x01 ); EmuUpdate();