Rendering Engine 0.2.9
Modular Graphics Rendering Engine | v0.2.9
rendering_engine::FrameMetrics Struct Reference

Stores CPU timing statistics for a rendered frame. More...

#include <i_application.hpp>

Public Attributes

float frameDurationMs = 0.0f
 
float updateTimeMs = 0.0f
 
float drawTimeMs = 0.0f
 
float fpsRaw = 0.0f
 
float fpsSmoothed = 0.0f
 

Detailed Description

Stores CPU timing statistics for a rendered frame.

Contains frame duration, update time, draw time, and FPS values (raw and smoothed).

All time values are in milliseconds.

Definition at line 43 of file i_application.hpp.

Member Data Documentation

◆ drawTimeMs

float rendering_engine::FrameMetrics::drawTimeMs = 0.0f

Time spent in Draw() (ms).

Definition at line 50 of file i_application.hpp.

◆ fpsRaw

float rendering_engine::FrameMetrics::fpsRaw = 0.0f

Instantaneous FPS (1000 / frameDurationMs).

Definition at line 52 of file i_application.hpp.

◆ fpsSmoothed

float rendering_engine::FrameMetrics::fpsSmoothed = 0.0f

Smoothed FPS value.

Definition at line 54 of file i_application.hpp.

◆ frameDurationMs

float rendering_engine::FrameMetrics::frameDurationMs = 0.0f

Total frame duration (ms).

Definition at line 46 of file i_application.hpp.

◆ updateTimeMs

float rendering_engine::FrameMetrics::updateTimeMs = 0.0f

Time spent in Update() (ms).

Definition at line 48 of file i_application.hpp.


The documentation for this struct was generated from the following file: