Updated Toy

This commit is contained in:
2023-06-13 08:27:31 +10:00
parent 3fba4e9b48
commit 301b4ad636
5 changed files with 43 additions and 11 deletions

View File

@@ -66,7 +66,6 @@ void Dbg_clearConsole()
void Dbg_initTimer(Dbg_Timer* timer) {
timer->name = NULL;
timer->start = 0;
timer->log = TOY_ALLOCATE(char, 2048);
memset(timer->log, 0, 2048);
timer->logPos = 0;
}
@@ -87,13 +86,12 @@ void Dbg_printTimerLog(Dbg_Timer* timer) {
}
void Dbg_freeTimer(Dbg_Timer* timer) {
TOY_FREE_ARRAY(char, timer->log, 2048);
//
}
void Dbg_initFPSCounter(Dbg_FPSCounter* counter) {
counter->count = 0;
counter->start = clock();
counter->log = TOY_ALLOCATE(char, 256);
memset(counter->log, 0, 256);
}
@@ -112,5 +110,5 @@ void Dbg_printFPSCounter(Dbg_FPSCounter* counter) {
}
void Dbg_freeFPSCounter(Dbg_FPSCounter* counter) {
TOY_FREE_ARRAY(char, counter->log, 256);
//
}