Add FPS counter

Added console FPS counter. Thise required me to create
some time functions and remove FPS cap from Vulkan

Signed-off-by: Piotr Krygier <piotrkrygier@everyonecancode@xyz>
This commit is contained in:
Piotr Krygier
2026-02-11 18:44:12 +01:00
parent de597ebc5d
commit 415d4394c2
6 changed files with 51 additions and 15 deletions
+9
View File
@@ -0,0 +1,9 @@
#include "time_utils.h"
#include <stdint.h>
#include "SDL3/SDL_timer.h"
#define NS_TO_S(time) (time/1000000000)
double time_get_sec_from_start(void)
{
return NS_TO_S((double)SDL_GetTicksNS());
}