Ankush's Garage
A collection of stuff made by Ankush Roy
Loading...
Searching...
No Matches
FPSTracker.h
Go to the documentation of this file.
1#ifndef INCLUDE_IMGUICORE_GAMEFPSTRACKER_H_
2#define INCLUDE_IMGUICORE_GAMEFPSTRACKER_H_
3
6class Tracker
8 public:
11 static void AddUpdateFPSPointQueue(float UpdateTime);
15 static void AddRenderFPSPointQueue(float RenderTime);
16
20 static void RegisterPoints();
21
22 // these are public because I don't want the overhead of creating new functions
26
29
30 private:
31 static float m_UpdateTime;
32 static float m_RenderTime;
33};
34
35#endif // INCLUDE_IMGUICORE_GAMEFPSTRACKER_H_
Definition FPSTracker.h:7
static void AddRenderFPSPointQueue(float RenderTime)
This function adds the time taken by the render function to complete in a Queue.
Definition FPSTracker.cpp:20
static ScrollingBuffer s_RealUpdateFPSBuffer
Definition FPSTracker.h:6
static ScrollingBuffer s_RenderFTBuffer
Definition FPSTracker.h:10
static ScrollingBuffer s_UpdateFTBuffer
Definition FPSTracker.h:9
static void AddUpdateFPSPointQueue(float UpdateTime)
This function adds the time taken by the update function to complete in a Queue.
Definition FPSTracker.cpp:15
static ScrollingBuffer s_RenderFPSBuffer
Definition FPSTracker.h:7
static float m_RenderTime
Definition FPSTracker.h:13
static ScrollingBuffer s_UpdateFPSBuffer
Definition FPSTracker.h:5
static float m_UpdateTime
Definition FPSTracker.h:12
static void RegisterPoints()
This function creates new points in the tracker using the values from AddRenderFPSPointQueue() and Ad...
Definition FPSTracker.cpp:25
Definition ScrollingBuffer.h:7