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:
Aleric Inglewood
2013-11-26 22:09:46 +01:00
parent 8357a2b90b
commit 38957ff531
2 changed files with 36 additions and 1 deletions

View File

@@ -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.