Pārlūkot izejas kodu

Added profile statement

jorrit 3 gadi atpakaļ
vecāks
revīzija
20e63053da
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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;)