From e2b361356c84449a0ba7920d2cb05aa3b4984815 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Fri, 5 Sep 2014 02:40:30 +0200 Subject: [PATCH] Add a marker for gpu command upload --- src/graphics/stkscenemanager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/graphics/stkscenemanager.cpp b/src/graphics/stkscenemanager.cpp index 96ab0acec..36482267d 100644 --- a/src/graphics/stkscenemanager.cpp +++ b/src/graphics/stkscenemanager.cpp @@ -14,6 +14,7 @@ #include "modes/world.hpp" #include "tracks/track.hpp" #include "lod_node.hpp" +#include "utils/profiler.hpp" #include static void @@ -493,6 +494,7 @@ void IrrDriver::PrepareDrawCalls(scene::ICameraSceneNode *camnode) size_t SolidPoly = 0, ShadowPoly = 0, MiscPoly = 0; + PROFILER_PUSH_CPU_MARKER("- Draw Command upload", 0xFF, 0x0, 0xFF); #pragma omp parallel sections { #pragma omp section @@ -650,6 +652,7 @@ void IrrDriver::PrepareDrawCalls(scene::ICameraSceneNode *camnode) } } } + PROFILER_POP_CPU_MARKER(); poly_count[SOLID_NORMAL_AND_DEPTH_PASS] += SolidPoly; poly_count[SHADOW_PASS] += ShadowPoly;