From 7ff7495c82b847dcaa686d7127b636ed65c28835 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 15 May 2025 21:08:57 +0200 Subject: [PATCH] Call do_startup_frame() instead of display_startup() for more frequent processing of message queue during startup --- indra/newview/llstartup.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 85541d8175..a83d5b7f99 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -1950,9 +1950,9 @@ bool idle_startup() // Wait for notification confirmation if (STATE_LOGIN_CONFIRM_NOTIFICATON == LLStartUp::getStartupState()) { - display_startup(); + do_startup_frame(); gViewerWindow->getProgressView()->setVisible(false); - display_startup(); + do_startup_frame(); ms_sleep(1); return false; } @@ -2298,10 +2298,10 @@ bool idle_startup() //so I just moved nearby history loading a few states further if (gSavedPerAccountSettings.getBOOL("LogShowHistory")) { - FSFloaterNearbyChat* nearby_chat = FSFloaterNearbyChat::getInstance(); - if (nearby_chat) nearby_chat->loadHistory(); + if (FSFloaterNearbyChat* nearby_chat = FSFloaterNearbyChat::getInstance()) + nearby_chat->loadHistory(); } - display_startup(); + do_startup_frame(); // [FS communication UI] // FIRE-18250: Option to disable default eye movement @@ -2549,13 +2549,14 @@ bool idle_startup() LL_INFOS() << "Requesting Money Balance" << LL_ENDL; LLStatusBar::sendMoneyBalanceRequest(); - do_startup_frame(); // Moved before inventory creation. // request all group information LL_INFOS("Agent_GroupData") << "GROUPDEBUG: Requesting Agent Data during startup" << LL_ENDL; gAgent.sendAgentDataUpdateRequest(); - display_startup(); // + + do_startup_frame(); + // Inform simulator of our language preference LLAgentLanguage::update(); @@ -2808,7 +2809,7 @@ bool idle_startup() // Create the inventory views LL_INFOS() << "Creating Inventory Views" << LL_ENDL; LLFloaterReg::getInstance("inventory"); - //do_startup_frame(); + do_startup_frame(); // [RLVa:KB] - Checked: RLVa-1.1.0 if (RlvHandler::isEnabled()) @@ -2898,7 +2899,7 @@ bool idle_startup() //ok, we're done, set it back to false. gSavedSettings.setBOOL("FSFirstRunAfterSettingsRestore", false); } - display_startup(); + do_startup_frame(); // if (gSavedSettings.getBOOL("HelpFloaterOpen")) @@ -3074,7 +3075,7 @@ bool idle_startup() } } #endif // OPENSIM - display_startup(); + do_startup_frame(); // LLStartUp::setStartupState( STATE_PRECACHE );