Don't sleep for movie decoding to catch up.
The DShow threads seem to be getting enough time anyway. With sleeping removed, my P2-450 still doesn't drop any movie frames.
This commit is contained in:
@@ -249,8 +249,13 @@ void Sprite::DrawPrimitives()
|
||||
m_temp.crop.top + m_temp.crop.bottom > 1 )
|
||||
return;
|
||||
|
||||
if( m_pTexture && m_pTexture->IsAMovie() && m_pTexture->IsPlaying() )
|
||||
SDL_Delay( PREFSMAN->m_iMovieDecodeMS ); // let the movie decode a frame
|
||||
// This is causing terrible movie performance on an Athlon 1.3+Voodoo3.
|
||||
// With the default delay of 2ms, the frame rate of demonstration dives
|
||||
// from 110fps to 84. SDL_Delay must behave differently than Win32's
|
||||
// Sleep(). Leave this commented for now, and uncomment if we hear
|
||||
// about problems with dropped movie frames. -Chris
|
||||
//if( m_pTexture && m_pTexture->IsAMovie() && m_pTexture->IsPlaying() )
|
||||
// SDL_Delay( PREFSMAN->m_iMovieDecodeMS ); // let the movie decode a frame
|
||||
|
||||
// use m_temp_* variables to draw the object
|
||||
RectF quadVerticies;
|
||||
|
||||
Reference in New Issue
Block a user