mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X:
Tweaks to async mixing, making the buffer stay closer to 50% filled and also making it more effective on sharp FPS drops. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4500 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
b5138f64eb
commit
cf9600fd9f
|
@ -204,13 +204,14 @@ void SndBuffer::UpdateTempoChangeAsyncMixing()
|
|||
float statusPct = GetStatusPct();
|
||||
|
||||
lastPct = statusPct;
|
||||
if( statusPct < -0.4f )
|
||||
if( statusPct < -0.1f )
|
||||
{
|
||||
TickInterval -= 4;
|
||||
if( TickInterval <= 200 ) TickInterval = 200;
|
||||
if( statusPct < -0.3f ) TickInterval = 64;
|
||||
if( TickInterval < 64 ) TickInterval = 64;
|
||||
//printf("-- %d, %f\n",TickInterval,statusPct);
|
||||
}
|
||||
else if( statusPct > 0.5f )
|
||||
else if( statusPct > 0.2f )
|
||||
{
|
||||
TickInterval += 1;
|
||||
if( TickInterval >= 7000 ) TickInterval = 7000;
|
||||
|
|
Loading…
Reference in New Issue