From d80b09dd84b81d975fef63b5f8c6f9bc666a6354 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 25 Mar 2007 04:01:56 +0000 Subject: [PATCH] ret == 0 means EOF. Don't update the texture; it'll loop and update it again right away. This caused an update before the previous parallel unlock had finished, which apparently triggered the slow path in the driver and caused a 15ms skip. --- stepmania/src/arch/MovieTexture/MovieTexture_Generic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/arch/MovieTexture/MovieTexture_Generic.cpp b/stepmania/src/arch/MovieTexture/MovieTexture_Generic.cpp index 3d98a8f205..2eca38f66b 100644 --- a/stepmania/src/arch/MovieTexture/MovieTexture_Generic.cpp +++ b/stepmania/src/arch/MovieTexture/MovieTexture_Generic.cpp @@ -460,7 +460,7 @@ int MovieTexture_Generic::GetFrame( float fTargetTime ) int ret = m_pDecoder->GetFrame( m_pSurface, fTargetTime ); if( m_pTextureLock != NULL ) - m_pTextureLock->Unlock( m_pSurface, ret != -1 ); + m_pTextureLock->Unlock( m_pSurface, ret > 0 ); return ret; }