File tree Expand file tree Collapse file tree
Core/GameEngine/Source/Common
GeneralsMD/Code/GameEngine/Source
Generals/Code/GameEngine/Source Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ FrameRateLimit::FrameRateLimit()
3232
3333Real FrameRateLimit::wait (UnsignedInt maxFps)
3434{
35+ PROFILER_SECTION ;
3536 LARGE_INTEGER tick;
3637 QueryPerformanceCounter (&tick);
3738 double elapsedSeconds = static_cast <double >(tick.QuadPart - m_start) / m_freq;
Original file line number Diff line number Diff line change @@ -490,6 +490,8 @@ DECLARE_PERF_TIMER(GameClient_draw)
490490void GameClient::update ()
491491{
492492 USE_PERF_TIMER (GameClient_update)
493+ PROFILER_FRAME_MARK ;
494+ PROFILER_SECTION_COLOR (0x2196F3 );
493495 // create the FRAME_TICK message
494496 GameMessage *frameMsg = TheMessageStream->appendMessage ( GameMessage::MSG_FRAME_TICK );
495497 frameMsg->appendTimestampArgument ( getFrame () );
Original file line number Diff line number Diff line change @@ -3124,6 +3124,7 @@ extern __int64 Total_Load_3D_Assets;
31243124void GameLogic::update ()
31253125{
31263126 USE_PERF_TIMER (GameLogic_update)
3127+ PROFILER_SECTION_COLOR (0x4CAF50 );
31273128
31283129 LatchRestore<Bool> inUpdateLatch (m_isInUpdate, TRUE );
31293130#ifdef DO_UNIT_TIMINGS
Original file line number Diff line number Diff line change @@ -511,6 +511,8 @@ DECLARE_PERF_TIMER(GameClient_draw)
511511void GameClient::update ()
512512{
513513 USE_PERF_TIMER (GameClient_update)
514+ PROFILER_FRAME_MARK ;
515+ PROFILER_SECTION_COLOR (0x2196F3 );
514516 // create the FRAME_TICK message
515517 GameMessage *frameMsg = TheMessageStream->appendMessage ( GameMessage::MSG_FRAME_TICK );
516518 frameMsg->appendTimestampArgument ( getFrame () );
Original file line number Diff line number Diff line change @@ -3654,6 +3654,7 @@ extern __int64 Total_Load_3D_Assets;
36543654void GameLogic::update ()
36553655{
36563656 USE_PERF_TIMER (GameLogic_update)
3657+ PROFILER_SECTION_COLOR (0x4CAF50 );
36573658
36583659 LatchRestore<Bool> inUpdateLatch (m_isInUpdate, TRUE );
36593660#ifdef DO_UNIT_TIMINGS
You can’t perform that action at this time.
0 commit comments