0ad/source
wraitii f73fa05542 Cache the model-animation bounds more efficiently.
To render models, we need to know the maximum bounds it takes over the
course of an animation. This depends only on the ModelDef and the
AnimationDef (and thus the SkeletonDef).
Currently, we recompute this data for each model, which is inefficient.
Caching it in ModelDef is faster, particularly avoiding lag spikes at
game start on some maps.
The animations are referred by a unique ID to avoid pointer-related
issues. I would have preferred weak_ptr, but that cannot be stably
hashed for now.

While at it, switch to unique_ptr/vectors.

Differential Revision: https://code.wildfiregames.com/D2967
This was SVN commit r25306.
2021-04-23 14:26:59 +00:00
..
collada Refactors smart pointers creation, reduces code duplication and improves exception safety. 2021-02-13 23:53:40 +00:00
graphics Cache the model-animation bounds more efficiently. 2021-04-23 14:26:59 +00:00
gui Draws scrollbar above list to have a correct order for Z sorting after a6cb77a204. 2021-04-23 06:56:01 +00:00
i18n Moves CreateDateTimeInstance from the public L10n header to its implementation. 2021-03-12 09:11:22 +00:00
lib Reduces number of allocations during error message formatting. 2021-04-22 06:53:03 +00:00
lobby Fix typos in log and warn messages 2021-03-10 16:50:15 +00:00
maths Rework 7ee94f23df 2021-04-16 16:01:30 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Remember OOS on a per-client basis. 2021-03-31 15:55:19 +00:00
pch ParamNode: switch to utf8, ToXML -> ToXMLString, test tweak, PCH tweak 2021-04-11 09:23:10 +00:00
ps Improvements on 76acc4e146 2021-04-16 16:04:01 +00:00
renderer Removes old ARB state.matrix usages. 2021-04-17 23:08:55 +00:00
rlinterface ParamNode: switch to utf8, ToXML -> ToXMLString, test tweak, PCH tweak 2021-04-11 09:23:10 +00:00
scriptinterface Set a stack quota for JS scripts to prevent crashes from infinite loops. 2021-04-16 16:49:18 +00:00
simulation2 Rework 7ee94f23df 2021-04-16 16:01:30 +00:00
soundmanager Fix compilation with --without-audio 2021-03-04 17:36:24 +00:00
third_party Optimization for include resolving in PreprocessorWrapper. 2021-01-20 23:05:15 +00:00
tools Adds line drawing to DebugRenderer. 2021-04-15 22:51:25 +00:00
main.cpp Make real directory paths on the VFS predictable (retry) 2021-03-23 12:46:59 +00:00
test_setup.cpp Introduce C++ templates replacements for DEFINE_INTERFACE_X and RegisterFunction macros 2021-03-01 20:52:24 +00:00