From af68319da7f6f7a730c67a7ba407598bae1d69a0 Mon Sep 17 00:00:00 2001 From: Marianne Gagnon Date: Sun, 25 Oct 2015 21:22:45 -0400 Subject: [PATCH] Add profiler marker to measure material handling in Kart::update --- src/karts/kart.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 2369fab4b..9187258a9 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -1252,6 +1252,8 @@ void Kart::update(float dt) { m_body->getBroadphaseHandle()->m_collisionFilterGroup = old_group; } + + PROFILER_PUSH_CPU_MARKER("Kart::Update (material)", 0x60, 0x34, 0x7F); handleMaterialGFX(); const Material* material=m_terrain_info->getMaterial(); if (!material) // kart falling off the track @@ -1309,6 +1311,7 @@ void Kart::update(float dt) #endif } } // if there is material + PROFILER_POP_CPU_MARKER(); // Check if any item was hit. // check it if we're not in a network world, or if we're on the server (when network mode is on)