Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

WindowFrameRate.cpp File Reference

#include "../Include/FlyLegacy.h"
#include "../Include/Fui.h"
#include "../Include/Globals.h"

Go to the source code of this file.

Functions

void FrameRateNotify (Tag id, Tag component, EFuiEvents event, EFuiEvents subevent)


Function Documentation

void FrameRateNotify Tag  id,
Tag  component,
EFuiEvents  event,
EFuiEvents  subevent
 

Todo:
Only update average frame rate once per second, averaged over the last second
Todo:
Adjust vertical scale to average frame rate. Possible maximum framerate scales are 20, 50, 100 and 200 fps, with grid lines at 4, 10, 20 and 40 fps respectively.
Todo:
Implement EVENT_MOVED notify and save window position in INI file

Definition at line 34 of file WindowFrameRate.cpp.

References CFuiManager::AddGraphTrace(), CFuiManager::AddGraphTracePoint(), CFuiManager::ClearGraphTracePoints(), SGlobals::drawRate, EVENT_OPENWINDOW, EVENT_UPDATE, FUI_GRAPH_TRACE_LINE, SGlobals::fuimgr, CFrameRateTracker::GetActualSamples(), CFrameRateTracker::GetMaxSamples(), CFrameRateTracker::GetSample(), globals, MakeRGB(), CFuiManager::SetComponentText(), CFuiManager::SetGraphGridRange(), CFuiManager::SetGraphGridSpacing(), CFuiManager::SetGraphTraceColour(), CFuiManager::SetGraphTraceRange(), and CFuiManager::SetLabelColour().

Referenced by KeyGlobal().

SourceForge.net Logo Documentation generated by doxygen