feat: add fps module for rolling frame/fps diagnostics

Real-time 1-second rolling window, independent of tick rate or
display refresh.
This commit is contained in:
2026-08-23 17:43:51 +02:00
parent 55055a042d
commit 5ad0ddfbc0
4 changed files with 64 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef SKELE_FPS_H
#define SKELE_FPS_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
extern float skele_fps;
extern float skele_frame_time_ms;
extern float skele_frame_budget_ms;
void skele_fps_init(void);
void skele_fps_frame_mark(void);
#ifdef __cplusplus
}
#endif
#endif /* SKELE_FPS_H */