1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 00:49:54 +00:00
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%.
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 Add commandline option to load a save game on startup 2015-01-07 03:27:24 +01:00
charactermanager.cpp Remove empty line at the beginning of files 2015-08-18 23:06:12 +02:00
charactermanager.hpp Use descriptive names for save files and character folders (Fixes #1449) 2014-06-10 00:22:00 +02:00
statemanagerimp.cpp Cache CellId 2015-11-26 23:56:32 +01:00
statemanagerimp.hpp Write savegame screenshot 2015-06-03 16:40:16 +02:00