Pull size check out of the function. Profiling showed that a large number of samples (as in profiling samples, not sound samples) of Vector::FastSoundWrite() where in its prologue which was attributed to the early exit condition (basically just shuts the profiler up).
This commit is contained in:
@@ -62,7 +62,8 @@ void RageSoundMixBuffer::write( const int16_t *buf, unsigned size )
|
||||
#ifdef USE_VEC
|
||||
if( g_bVector )
|
||||
{
|
||||
Vector::FastSoundWrite( pBuf, buf, size, m_iVolumeFactor );
|
||||
if( size )
|
||||
Vector::FastSoundWrite( pBuf, buf, size, m_iVolumeFactor );
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user