You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/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%.
9 years ago
..
character.cpp Remove empty line at the beginning of files 10 years ago
character.hpp Add commandline option to load a save game on startup 10 years ago
charactermanager.cpp Remove empty line at the beginning of files 10 years ago
charactermanager.hpp Use descriptive names for save files and character folders (Fixes #1449) 11 years ago
statemanagerimp.cpp Cache CellId 9 years ago
statemanagerimp.hpp Write savegame screenshot 10 years ago