enable SetThreadPriorityBoost

This commit is contained in:
Glenn Maynard
2003-09-25 02:54:24 +00:00
parent 725c36dd47
commit e5e6cac2e4
@@ -550,8 +550,8 @@ void MovieTexture_FFMpeg::DecoderThread()
/* Windows likes to boost priority when processes come out of a wait state. We don't
* want that, since it'll result in us having a small priority boost after each movie
* frame, resulting in skips in the gameplay thread. */
// if(!SetThreadPriorityBoost(GetCurrentThread(), TRUE))
// LOG->Warn(werr_ssprintf(GetLastError(), "SetThreadPriorityBoost failed"));
if(!SetThreadPriorityBoost(GetCurrentThread(), TRUE))
LOG->Warn(werr_ssprintf(GetLastError(), "SetThreadPriorityBoost failed"));
CHECKPOINT;
bool FirstDecodedFrame = true;