Merge pull request #1587 from Areloch/ProfilerMenuTool

Profiler toggle and World Editor menu entry.
This commit is contained in:
Areloch 2016-05-31 23:32:31 -05:00
commit 5122360552
2 changed files with 7 additions and 1 deletions

View file

@ -618,7 +618,12 @@ GlobalActionMap.bind(keyboard, "ctrl o", bringUpOptions);
function showMetrics(%val)
{
if(%val)
metrics("fps gfx shadow sfx terrain groundcover forest net");
{
if(!Canvas.isMember(FrameOverlayGui))
metrics("fps gfx shadow sfx terrain groundcover forest net");
else
metrics("");
}
}
GlobalActionMap.bind(keyboard, "ctrl F2", showMetrics);