Added a menu toggle item at Advanced > UI > Show FPS to show fps as an ui element. The related Debug Setting is: SLBShowFPS
This commit is contained in:
@@ -729,6 +729,13 @@ public:
|
||||
ypos += y_inc;
|
||||
}
|
||||
|
||||
static const LLCachedControl<bool> slb_show_fps("SLBShowFPS");
|
||||
if (slb_show_fps)
|
||||
{
|
||||
addText(xpos+280, ypos+5, llformat("FPS %3.1f", LLViewerStats::getInstance()->mFPSStat.getMeanPerSec()));
|
||||
ypos += y_inc;
|
||||
}
|
||||
|
||||
static const LLCachedControl<bool> DebugShowPrivateMem("DebugShowPrivateMem",false);
|
||||
if (DebugShowPrivateMem)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user