Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created June 17, 2013 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/5801519 to your computer and use it in GitHub Desktop.
Save kahrl/5801519 to your computer and use it in GitHub Desktop.
diff --git a/src/environment.cpp b/src/environment.cpp
index af05371..a97a9bd 100644
--- a/src/environment.cpp
+++ b/src/environment.cpp
@@ -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();
@@ -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();)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment