Having BackgroundYieldTime set to a large enough value would cause a stall if client isn't in focus during login.

This commit is contained in:
Shyotl
2012-02-02 23:44:35 -06:00
parent 5e0140ba81
commit 9ee0c5acf3

View File

@@ -1213,6 +1213,9 @@ bool LLAppViewer::mainLoop()
// of equal priority on Windows
if (milliseconds_to_sleep > 0)
{
//Prevent sleeping too long while in the login process (tends to cause stalling)
if(LLStartUp::getStartupState() >= STATE_LOGIN_AUTH_INIT && LLStartUp::getStartupState() < STATE_STARTED)
milliseconds_to_sleep = llmin(milliseconds_to_sleep,250);
ms_sleep(milliseconds_to_sleep);
// also pause worker threads during this wait period
LLAppViewer::getTextureCache()->pause();