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:
@@ -1213,6 +1213,9 @@ bool LLAppViewer::mainLoop()
|
|||||||
// of equal priority on Windows
|
// of equal priority on Windows
|
||||||
if (milliseconds_to_sleep > 0)
|
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);
|
ms_sleep(milliseconds_to_sleep);
|
||||||
// also pause worker threads during this wait period
|
// also pause worker threads during this wait period
|
||||||
LLAppViewer::getTextureCache()->pause();
|
LLAppViewer::getTextureCache()->pause();
|
||||||
|
|||||||
Reference in New Issue
Block a user