Reduce calls to LLHoverView::updateText
Basically to avoid calling LLTrans::getString 250 times per second, and seeing INFO: log_sStringTemplates_accesses: LLTrans::getString/findString called 19000 in total. INFO: log_sStringTemplates_accesses: LLTrans::getString/findString called 20000 in total. etc, every 40 seconds in the log.
This commit is contained in:
@@ -105,6 +105,8 @@ protected:
|
||||
|
||||
// If not null and not dead, we're over an object.
|
||||
LLPointer<LLViewerObject> mLastHoverObject;
|
||||
LLViewerObject* mLastTextHoverObject; // Singu extension: the value of mLastHoverObject that corresponds to mText.
|
||||
LLFrameTimer mLastTextHoverObjectTimer; // Singu extension: times how long ago the text was updated (while retrieving data).
|
||||
LLPickInfo mLastPickInfo;
|
||||
|
||||
// If not LLVector3d::ZERO, we're over land.
|
||||
|
||||
Reference in New Issue
Block a user