Skip to content

Commit 261f559

Browse files
committedJun 17, 2013
Show number of objects in client environment in profiler (F6)
1 parent d74c377 commit 261f559

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/environment.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -2264,6 +2264,7 @@ void ClientEnvironment::step(float dtime)
22642264
Step active objects and update lighting of them
22652265
*/
22662266

2267+
g_profiler->avg("CEnv: num of objects", m_active_objects.size());
22672268
bool update_lighting = m_active_object_light_update_interval.step(dtime, 0.21);
22682269
for(std::map<u16, ClientActiveObject*>::iterator
22692270
i = m_active_objects.begin();
@@ -2293,6 +2294,7 @@ void ClientEnvironment::step(float dtime)
22932294
/*
22942295
Step and handle simple objects
22952296
*/
2297+
g_profiler->avg("CEnv: num of simple objects", m_simple_objects.size());
22962298
for(std::list<ClientSimpleObject*>::iterator
22972299
i = m_simple_objects.begin(); i != m_simple_objects.end();)
22982300
{

0 commit comments

Comments
 (0)
Please sign in to comment.