-
Notifications
You must be signed in to change notification settings - Fork 1
/
WindowEngineStats.h
61 lines (50 loc) · 1.14 KB
/
WindowEngineStats.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef ENGINE_STATS_H
#define ENGINE_STATS_H
#include "Module.h"
#include "Application.h"
#include "imgui.h"
#include "imgui_impl_sdl.h"
#include "imgui_impl_opengl3.h"
#include <GL/glew.h>
class WindowEngineStats : public Module
{
public:
WindowEngineStats(Application* app, bool start_enabled = true);
~WindowEngineStats();
bool Start();
bool Draw();
bool Cleanup();
bool isEnabled();
private:
bool enabled;
float FPS_array[50];
float RAM_array[50];
float beforeLastFramefps = 0;
float values_offset = 0;
private:
Engine::SystemInfo SysInfo;
Engine::SoftwareInfo Softwareinfo_;
Engine::MemoryHardware MemoryHardware_;
Engine::GPUHardware GPUHardware_;
Engine::ProcessorHardware ProcessorHardware_;
//Software
std::string CompilerVersion;
std::string CppVersion;
std::string SDLVersion;
std::string VSCompilerVersion;
std::string WindowsVersion;
std::string CompilationTime;
//HardWare
uint32 RamSize;
uint32 MemoryLoaded;
uint64 PhysicalMemory;
uint64 VirtualMemory;
std::string CPUBrand;
uint CPUCores;
std::string CPUArchitecture;
float RamSizeSDL;
int GPUUsedRam;
int GPUTotalRam;
std::string GPUModel;
};
#endif