1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 18:37:08 +00:00
OpenMW/apps/openmw/mwstate
scrawl fbee32729a Cache CellId
ESM::Cell::getCellId() was allocating a string on every call. This caused functions dealing with cellIds to be unnecessarily expensive.

For example, World::moveObject spent almost as much time comparing CellIds as it did updating Bullet's AABB after the move. OpGetDistance was by far the most expensive script instruction because it has to compare cellIds.

The total cost of getCellId() relative to the frame loop was about 0.3%.
2015-11-26 23:56:32 +01:00
..
character.cpp Remove empty line at the beginning of files 2015-08-18 23:06:12 +02:00
character.hpp
charactermanager.cpp Remove empty line at the beginning of files 2015-08-18 23:06:12 +02:00
charactermanager.hpp
statemanagerimp.cpp Cache CellId 2015-11-26 23:56:32 +01:00
statemanagerimp.hpp