From 78eac6b7ce1d26e850f2c4421c4c76a6147f14bf Mon Sep 17 00:00:00 2001 From: auria Date: Mon, 5 Sep 2011 22:55:55 +0000 Subject: [PATCH] Add gloal profiler marker, will help get percentages git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9761 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/main_loop.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main_loop.cpp b/src/main_loop.cpp index cc9210c14..f02ad1a1c 100644 --- a/src/main_loop.cpp +++ b/src/main_loop.cpp @@ -122,6 +122,8 @@ void MainLoop::run() m_curr_time = device->getTimer()->getRealTime(); while(!m_abort) { + PROFILER_PUSH_CPU_MARKER("Main loop", 0xFF, 0x00, 0xF7); + m_prev_time = m_curr_time; float dt = getLimitedDt(); @@ -156,6 +158,8 @@ void MainLoop::run() PROFILER_SYNC_FRAME(); } + + PROFILER_POP_CPU_MARKER(); } // while !m_exit } // run