From: notaz Date: Sun, 9 Oct 2011 17:50:16 +0000 (+0300) Subject: psxcounters: change spu update ~2ms X-Git-Tag: r10~5 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=554a2220f2413cc29d7912ad3f7d91c9e64284cf;p=pcsx_rearmed.git psxcounters: change spu update ~2ms old value ~1.4 was weird anyway --- diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index 865b3d8f..db1462d0 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -68,7 +68,7 @@ static const u32 CountToTarget = 1; static const u32 FrameRate[] = { 60, 50 }; static const u32 VBlankStart[] = { 240, 256 }; static const u32 HSyncTotal[] = { 263, 313 }; -static const u32 SpuUpdInterval[] = { 23, 22 }; +static const u32 SpuUpdInterval[] = { 32, 32 }; static const s32 VerboseLevel = 0; diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index d7dc1b64..df95f35d 100644 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -904,12 +904,14 @@ static void *MAINThread(void *arg) // SPU ASYNC... even newer epsxe func // 1 time every 'cycle' cycles... harhar +// rearmed: called every 2ms now + void CALLBACK SPUasync(unsigned long cycle) { if(iSpuAsyncWait) { iSpuAsyncWait++; - if(iSpuAsyncWait<=16/FRAG_MSECS) return; + if(iSpuAsyncWait<=16/2) return; iSpuAsyncWait=0; }