Calculate frame-rate for the user, as a purely luxurious feature

..and to reduce sample code size a little.
This commit is contained in:
ocornut
2015-02-11 18:28:17 +00:00
parent d65e051a07
commit cb0a4db048
6 changed files with 16 additions and 44 deletions

View File

@ -589,6 +589,7 @@ struct ImGuiIO
bool WantCaptureMouse; // Mouse is hovering a window or widget is active (= ImGui will use your mouse input)
bool WantCaptureKeyboard; // Widget is active (= ImGui will use your keyboard input)
float Framerate; // Framerate estimation, in frame per second. Rolling average estimation based on IO.DeltaTime over 120 frames
//------------------------------------------------------------------
// [Internal] ImGui will maintain those fields for you