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:
ramapcsx2 2011-03-28 00:03:06 +00:00
parent b5138f64eb
commit cf9600fd9f
1 changed files with 4 additions and 3 deletions

View File

@ -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;