Add a low FPS callback to aid in debugging, and fix a huge memory leak in akgl_text_rendertextat

This commit is contained in:
2026-05-15 11:07:31 -04:00
parent 73b1a4cab0
commit f695a035c8
4 changed files with 14 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ typedef struct {
SDL_Time lastIterTime;
SDL_Time lastFPSTime;
int16_t framesSinceUpdate;
void (*lowfpsfunc)(void);
} akgl_Game;
extern SDL_Window *window;
@@ -58,5 +59,6 @@ akerr_ErrorContext AKERR_NOIGNORE *akgl_game_init_screen();
void akgl_game_updateFPS();
akerr_ErrorContext AKERR_NOIGNORE *akgl_game_save(char *fpath);
akerr_ErrorContext AKERR_NOIGNORE *akgl_game_load(char *fpath);
void akgl_game_lowfps(void);
#endif //_AKGL_GAME_H_