psxcounters: change spu update ~2ms
authornotaz <notasas@gmail.com>
Sun, 9 Oct 2011 17:50:16 +0000 (20:50 +0300)
committernotaz <notasas@gmail.com>
Sun, 9 Oct 2011 21:25:59 +0000 (00:25 +0300)
old value ~1.4 was weird anyway

libpcsxcore/psxcounters.c
plugins/dfsound/spu.c

index 865b3d8..db1462d 100644 (file)
@@ -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 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;
 
 
 static const s32 VerboseLevel     = 0;
 
index d7dc1b6..df95f35 100644 (file)
@@ -904,12 +904,14 @@ static void *MAINThread(void *arg)
 // SPU ASYNC... even newer epsxe func
 //  1 time every 'cycle' cycles... harhar
 
 // 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++;
 void CALLBACK SPUasync(unsigned long cycle)
 {
  if(iSpuAsyncWait)
   {
    iSpuAsyncWait++;
-   if(iSpuAsyncWait<=16/FRAG_MSECS) return;
+   if(iSpuAsyncWait<=16/2) return;
    iSpuAsyncWait=0;
   }
 
    iSpuAsyncWait=0;
   }