diff options
author | Kahrl <kahrl@gmx.net> | 2013-06-18 01:49:06 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-06-18 01:49:06 +0200 |
commit | 261f559339470aae8bebc09a7f45beae0ddcae07 (patch) | |
tree | b047a2c8eae528ef803bb4a75b40784adf2632ae /src | |
parent | d74c3773372ff0dc2d79d16ec77877ec8267a5a7 (diff) | |
download | minetest-261f559339470aae8bebc09a7f45beae0ddcae07.tar.gz minetest-261f559339470aae8bebc09a7f45beae0ddcae07.tar.bz2 minetest-261f559339470aae8bebc09a7f45beae0ddcae07.zip |
Show number of objects in client environment in profiler (F6)
Diffstat (limited to 'src')
-rw-r--r-- | src/environment.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index af05371ca..a97a9bd08 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();) { |