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:
@@ -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());
|
||||
}
|
||||
Reference in New Issue
Block a user