Puppyprint
This commit is contained in:
1 parent
4ae923aaa0
commit
30aeb6841c
18 files changed
+1329
-13
No files matched your search
@@ -14,6 +14,7 @@
|
||||
#include "game/mario.h"
|
||||
#include "game/object_list_processor.h"
|
||||
#include "surface_load.h"
|
||||
#include "game/puppyprint.h"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
@@ -617,6 +618,9 @@ void load_area_terrain(s16 index, s16 *data, s8 *surfaceRooms, s16 *macroObjects
|
||||
s16 terrainLoadType;
|
||||
s16 *vertexData = NULL;
|
||||
UNUSED s32 unused;
|
||||
#ifdef PUPPYPRINT
|
||||
OSTime first = osGetTime();
|
||||
#endif
|
||||
|
||||
// Initialize the data for this.
|
||||
gEnvironmentRegions = NULL;
|
||||
@@ -665,6 +669,9 @@ void load_area_terrain(s16 index, s16 *data, s8 *surfaceRooms, s16 *macroObjects
|
||||
|
||||
gNumStaticSurfaceNodes = gSurfaceNodesAllocated;
|
||||
gNumStaticSurfaces = gSurfacesAllocated;
|
||||
#ifdef PUPPYPRINT
|
||||
collisionTime[perfIteration] += osGetTime()-first;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -796,6 +803,9 @@ void load_object_surfaces(s16 **data, s16 *vertexData) {
|
||||
void load_object_collision_model(void) {
|
||||
UNUSED s32 unused;
|
||||
s16 vertexData[600];
|
||||
#ifdef PUPPYPRINT
|
||||
OSTime first = osGetTime();
|
||||
#endif
|
||||
|
||||
s16 *collisionData = gCurrentObject->collisionData;
|
||||
f32 marioDist = gCurrentObject->oDistanceToMario;
|
||||
@@ -830,4 +840,7 @@ void load_object_collision_model(void) {
|
||||
} else {
|
||||
gCurrentObject->header.gfx.node.flags &= ~GRAPH_RENDER_ACTIVE;
|
||||
}
|
||||
#ifdef PUPPYPRINT
|
||||
collisionTime[perfIteration] += osGetTime()-first;
|
||||
#endif
|
||||
}
|
||||
Reference in new issue
Block a user