short circuit on already prepared

This commit is contained in:
Glenn Maynard
2005-08-15 15:44:29 +00:00
parent d0c14b9187
commit 65beab6826
+7
View File
@@ -559,6 +559,13 @@ void ScreenManager::RunConcurrentlyPrepareScreen()
ScreenMessage SM = m_OnDonePreparingScreen;
m_OnDonePreparingScreen = SM_None;
/* If the screen is already prepared, we're all set. */
if( ScreenIsPrepped(sScreenName) )
{
SendMessageToTopScreen( SM );
return;
}
g_bIsConcurrentlyLoading = true;
StartConcurrentRendering();