Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Show number of objects in client environment in profiler (F6)
  • Loading branch information
kahrl committed Jun 17, 2013
1 parent d74c377 commit 261f559
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/environment.cpp
Expand Up @@ -2264,6 +2264,7 @@ void ClientEnvironment::step(float dtime)
Step active objects and update lighting of them
*/

g_profiler->avg("CEnv: num of objects", m_active_objects.size());
bool update_lighting = m_active_object_light_update_interval.step(dtime, 0.21);
for(std::map<u16, ClientActiveObject*>::iterator
i = m_active_objects.begin();
Expand Down Expand Up @@ -2293,6 +2294,7 @@ void ClientEnvironment::step(float dtime)
/*
Step and handle simple objects
*/
g_profiler->avg("CEnv: num of simple objects", m_simple_objects.size());
for(std::list<ClientSimpleObject*>::iterator
i = m_simple_objects.begin(); i != m_simple_objects.end();)
{
Expand Down

0 comments on commit 261f559

Please sign in to comment.