mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-19 18:53:32 +00:00
feat: Add CPU & GPU Temperature
This commit is contained in:
@@ -37,6 +37,7 @@ private slots:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void UpdatePosition();
|
void UpdatePosition();
|
||||||
|
void UpdateHardwareTemperatures();
|
||||||
void DrawPerformanceInfo(QPainter& painter);
|
void DrawPerformanceInfo(QPainter& painter);
|
||||||
void DrawFrameGraph(QPainter& painter);
|
void DrawFrameGraph(QPainter& painter);
|
||||||
QColor GetFpsColor(double fps) const;
|
QColor GetFpsColor(double fps) const;
|
||||||
@@ -52,6 +53,10 @@ private:
|
|||||||
double current_frame_time = 0.0;
|
double current_frame_time = 0.0;
|
||||||
int shaders_building = 0;
|
int shaders_building = 0;
|
||||||
double emulation_speed = 0.0;
|
double emulation_speed = 0.0;
|
||||||
|
float cpu_temperature = 0.0f;
|
||||||
|
float gpu_temperature = 0.0f;
|
||||||
|
QString cpu_sensor_type;
|
||||||
|
QString gpu_sensor_type;
|
||||||
|
|
||||||
// Frame graph data
|
// Frame graph data
|
||||||
static constexpr size_t MAX_FRAME_HISTORY = 120; // 2 seconds at 60 FPS
|
static constexpr size_t MAX_FRAME_HISTORY = 120; // 2 seconds at 60 FPS
|
||||||
|
|||||||
Reference in New Issue
Block a user