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
@@ -1089,7 +1089,7 @@ void geo_process_node_and_siblings(struct GraphNode *firstNode) {
*/
void geo_process_root(struct GraphNodeRoot *node, Vp *b, Vp *c, s32 clearColor) {
UNUSED s32 unused;
#ifdef PUPPYPRINT
#if PUPPYPRINT_DEBUG
OSTime first = osGetTime();
#endif
@@ -1132,7 +1132,7 @@ void geo_process_root(struct GraphNodeRoot *node, Vp *b, Vp *c, s32 clearColor)
}
main_pool_free(gDisplayListHeap);
}
#ifdef PUPPYPRINT
#if PUPPYPRINT_DEBUG
profiler_update(graphTime, first);
#endif
}