diff options
author | 2025-05-21 16:04:36 +0200 | |
---|---|---|
committer | 2025-05-21 16:04:36 +0200 | |
commit | 9706b174847143402db4150e0d497d4f8a152151 (patch) | |
tree | bb528816fe1ef8723d88001f7fa726ea556f9fb7 /src | |
parent | ce91cfc683355441bb4c62b6942aaf6db4675fdf (diff) | |
download | tris-9706b174847143402db4150e0d497d4f8a152151.tar.gz tris-9706b174847143402db4150e0d497d4f8a152151.zip |
Add the FPS macro
Used to calculate FPS.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/engine/engine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/engine/engine.c b/src/main/engine/engine.c index 18c39b5..d8314c9 100644 --- a/src/main/engine/engine.c +++ b/src/main/engine/engine.c @@ -125,7 +125,9 @@ engine_calculate_fps() end = time(NULL); if (end - start >= 1.0) { +#ifdef FPS printf("FPS: %d\n", frames); +#endif frames = 0; start = time(NULL); } |