| Fling Engine 0.00.1 Fling Engine is a game engine written in Vulkan

Stats.h
Go to the documentation of this file.
1 #pragma once
2
3 #include "MovingAverage.hpp"
4
5 namespace Fling
6 {
7 class Engine;
8
9 namespace Stats
10 {
11 struct Frames
12 {
13 friend class Engine;
14 public:
15 static float GetAverageFrameTime();
16
17 static float GetAverageFPS();
18
19 static void TickStats(float t_DeltaTime);
20
21 private:
22
23 static MovingAverage<float, 100> FPSCounter;
24 };
25 }
26 }
Fling::Stats::Frames::FPSCounter
static MovingAverage< float, 100 > FPSCounter
Definition: Stats.h:23
Fling::Stats::Frames::TickStats
static void TickStats(float t_DeltaTime)
Definition: Stats.cpp:20
Fling::Engine
Core engine class of Fling.
Definition: Engine.h:35
Fling::Stats::Frames::GetAverageFrameTime
static float GetAverageFrameTime()
Definition: Stats.cpp:10
Fling::Stats::Frames::GetAverageFPS
static float GetAverageFPS()
Definition: Stats.cpp:15
MovingAverage.hpp
Fling
Definition: Engine.h:29
Fling::Stats::Frames
Definition: Stats.h:11
Fling::MovingAverage< float, 100 >