Kohi Game Engine
|
#include "defines.h"
Go to the source code of this file.
Functions | |
KAPI void | metrics_initialize (void) |
Initializes the metrics system. More... | |
KAPI void | metrics_update (f64 frame_elapsed_time) |
Updates metrics; should be called once per frame. More... | |
KAPI f64 | metrics_fps (void) |
Returns the running average frames per second (fps). More... | |
KAPI f64 | metrics_frame_time (void) |
Returns the running average frametime in milliseconds. More... | |
KAPI void | metrics_frame (f64 *out_fps, f64 *out_frame_ms) |
Gets both the running average frames per second (fps) and frametime in milliseconds. More... | |
Gets both the running average frames per second (fps) and frametime in milliseconds.
out_fps | A pointer to hold the running average frames per second (fps). |
out_frame_ms | A pointer to hold the running average frametime in milliseconds. |
KAPI void metrics_initialize | ( | void | ) |
Initializes the metrics system.