From 177421b705a726e882c1ac2c221de98b26672e7f Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 22 Jun 2003 17:48:45 +0000 Subject: [PATCH] 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. --- stepmania/src/Sprite.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index 2b4dcf64c5..e9958d0781 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -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;