Puppyprint debugging is now correctly ommitted if debugging is set to 0

This commit is contained in:
Fazana committed 2021-08-25 19:33:56 +01:00
1 parent 6173fe01f2
commit c9bf910abf
13 files changed
+64 -64

No files matched your search

+2 -2
View File
@@ -626,7 +626,7 @@ UNUSED static u16 unused_get_elapsed_time(u64 *cycleCounts, s32 index) {
*/
void update_objects(UNUSED s32 unused) {
s64 cycleCounts[30];
#ifdef PUPPYPRINT
#if PUPPYPRINT_DEBUG
OSTime first = osGetTime();
OSTime colTime = collisionTime[perfIteration];
#endif
@@ -688,7 +688,7 @@ void update_objects(UNUSED s32 unused) {
}
gPrevFrameObjectCount = gObjectCounter;
#ifdef PUPPYPRINT
#if PUPPYPRINT_DEBUG
profiler_update(behaviourTime, first);
behaviourTime[perfIteration] -= collisionTime[perfIteration]+colTime;
#endif