What does PROFILE_BEGIN("CvGame::doTurn()") do?

General Tso

Panzer General
Joined
Oct 12, 2007
Messages
1,547
Location
U. S. of A.
As the title says, what does PROFILE_BEGIN("CvGame::doTurn()") do? If it's not doing anything important can I safely remove it?
 
I would keep it, it only is used with Debug DLL's so it won't affect performance. It's used when you have a debug dll and turn on function profiling in the CONTROL-D panel in game.

Performance Profiling is pretty useful, so keep it.
 
Thanks for the replys. My mod doesn't use a lot of the features used in vanilla BTS, so I'm in the process of removing everything not needed when the game processes a turn slice. Since that doesn't affect normal game play it stays. I've now got it to the point where each AI player uses multiple turn slices for each turn and it's working out very well. When controlled in Python they are starting to make good use of combined arms and the option is there for SDK use also.
 
Top Bottom