Avoid several excessive per-frame LLView::getChildView calls by instead caching the results in postBuild. (Added CachedUICtrl, which is basically just a self-nulling pointer to not have to make ui ctors dirtier)
This commit is contained in:
@@ -3094,7 +3094,7 @@ void LLViewerWindow::updateUI()
|
||||
}
|
||||
|
||||
// snap floaters to top of chat bar/button strip
|
||||
LLView* chatbar_and_buttons = gOverlayBar->getChild<LLView>("chatbar_and_buttons", TRUE);
|
||||
LLView* chatbar_and_buttons = gOverlayBar->getChatbarAndButtons();
|
||||
// find top of chatbar and state buttons, if either are visible
|
||||
if (chatbar_and_buttons && chatbar_and_buttons->getLocalBoundingRect().notEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user