timer: Added fps capping and fps calculation.
authorLukas Krickl <lukas@krickl.dev>
Thu, 26 Feb 2026 10:50:55 +0000 (11:50 +0100)
committerLukas Krickl <lukas@krickl.dev>
Thu, 26 Feb 2026 10:50:55 +0000 (11:50 +0100)
commit2d730100029ecefa57bf9f14b5352b52b501f57c
tree1eb9b468561fb95ba60d4470419a250635219a2b
parent7feba5191fcd542c589743c5ffa02130a3458669
timer: Added fps capping and fps calculation.

Added a few platform functions that give hints about the current
tickrate of the rendering backend.
Added timer struct.
Added tickrate constant for simulation updates.
src/lrts.c
src/lrts_impl.h
src/p_platform.h
src/p_r_sdl/p_draw.c
src/r_render.c
src/t_map.c
src/u_defs.h
src/u_time.c [new file with mode: 0644]
src/u_time.h [new file with mode: 0644]