Skip to content
Snippets Groups Projects
Commit 261f5593 authored by Kahrl's avatar Kahrl
Browse files

Show number of objects in client environment in profiler (F6)

parent d74c3773
No related branches found
No related tags found
No related merge requests found
...@@ -2264,6 +2264,7 @@ void ClientEnvironment::step(float dtime) ...@@ -2264,6 +2264,7 @@ void ClientEnvironment::step(float dtime)
Step active objects and update lighting of them 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); bool update_lighting = m_active_object_light_update_interval.step(dtime, 0.21);
for(std::map<u16, ClientActiveObject*>::iterator for(std::map<u16, ClientActiveObject*>::iterator
i = m_active_objects.begin(); i = m_active_objects.begin();
...@@ -2293,6 +2294,7 @@ void ClientEnvironment::step(float dtime) ...@@ -2293,6 +2294,7 @@ void ClientEnvironment::step(float dtime)
/* /*
Step and handle simple objects Step and handle simple objects
*/ */
g_profiler->avg("CEnv: num of simple objects", m_simple_objects.size());
for(std::list<ClientSimpleObject*>::iterator for(std::list<ClientSimpleObject*>::iterator
i = m_simple_objects.begin(); i != m_simple_objects.end();) i = m_simple_objects.begin(); i != m_simple_objects.end();)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment