Browse Source

Added profile statement

jorrit 3 years ago
parent
commit
20e63053da
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Jolt/Physics/Collision/BroadPhase/QuadTree.cpp

+ 2 - 0
Jolt/Physics/Collision/BroadPhase/QuadTree.cpp

@@ -963,6 +963,8 @@ JPH_INLINE void QuadTree::WalkTree(const ObjectLayerFilter &inObjectLayerFilter,
 			ObjectLayer object_layer = inTracking[body_id.GetIndex()].mObjectLayer; // We're not taking a lock on the body, so it may be in the process of being removed so check if the object layer is invalid
 			if (object_layer != cObjectLayerInvalid && inObjectLayerFilter.ShouldCollide(object_layer))
 			{
+				JPH_PROFILE("VisitBody");
+
 				// Track amount of hits
 				JPH_IF_TRACK_BROADPHASE_STATS(++hits_collected;)