From 554a2220f2413cc29d7912ad3f7d91c9e64284cf Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 9 Oct 2011 20:50:16 +0300 Subject: [PATCH] psxcounters: change spu update ~2ms old value ~1.4 was weird anyway --- libpcsxcore/psxcounters.c | 2 +- plugins/dfsound/spu.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.2