1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 03:39:14 +00:00
OpenMW/components/nif
scrawl 2b407a9995 Refactor NIF cache
- Remove broken cache locking mechanism

This was supposed to unload NIFFiles after a cell transition completes, but it was never working due to a mistake on the line if (--sLockLevel), should have been if (--sLockLevel == 0). Repairing this would increase load times (NIF files would have to be reloaded more frequently), so just removed it for now.

 - Decouple cache from NIFFile (now a new nifcache component)

 - Add API for future background loading

 - Provide a reliable way (SharedPtr) to hold on to loaded NIFFiles. This will be useful to avoid deep copies of keyframe and text key data, which is currently a performance bottleneck.
2014-08-24 02:37:50 +02:00
..
tests
.gitignore
controlled.hpp
controller.hpp Implement auto-adjusting of particle emit rate 2014-06-24 03:07:10 +02:00
data.hpp
effect.hpp
extra.hpp
niffile.cpp Refactor NIF cache 2014-08-24 02:37:50 +02:00
niffile.hpp Refactor NIF cache 2014-08-24 02:37:50 +02:00
nifstream.hpp
niftypes.hpp
node.hpp
property.hpp
record.hpp
recordptr.hpp