Puppyprint

This commit is contained in:
Fazana committed 2021-08-15 11:30:19 +01:00
1 parent 4ae923aaa0
commit 30aeb6841c
18 files changed
+1329 -13

No files matched your search

+9
View File
@@ -19,6 +19,7 @@
#include "platform_displacement.h"
#include "profiler.h"
#include "spawn_object.h"
#include "puppyprint.h"
/**
@@ -625,6 +626,10 @@ UNUSED static u16 unused_get_elapsed_time(u64 *cycleCounts, s32 index) {
*/
void update_objects(UNUSED s32 unused) {
s64 cycleCounts[30];
#ifdef PUPPYPRINT
OSTime first = osGetTime();
OSTime colTime = collisionTime[perfIteration];
#endif
cycleCounts[0] = get_current_clock();
@@ -683,4 +688,8 @@ void update_objects(UNUSED s32 unused) {
}
gPrevFrameObjectCount = gObjectCounter;
#ifdef PUPPYPRINT
profiler_update(behaviourTime, first);
behaviourTime[perfIteration] -= collisionTime[perfIteration]+colTime;
#endif
}