1
0
forked from 0ad/0ad
0ad/source/simulation2
Ykkrosh 1882f28504 New unit renderer.
Instead of each CCmpVisualActor rendering itself individually, collect
all the units in a single CCmpUnitRenderer. This avoids the overhead of
doing Interpolate/RenderSubmit calls every frame for every object in the
world. It also allows more efficient culling.

CCmpUnitRenderer knows the positions of each object at the start and end
of each turn, and computes the bounding sphere of the object along that
path. That allows quick culling without recomputing the precise
interpolated transform every frame. (In the future it could be improved
much more.)

Clarify and clean up the sending of PositionChanged messages, and add
new InterpolatedPositionChanged.

Remove the forceFloating parameter from GetInterpolatedTransform, since
it doesn't fit the new design. Replace it with a (non-synchronised) flag
in CCmpPosition.

Move construction progress from CCmpVisualActor to CCmpPosition, so that
it consistently affects all position/transform computation.

Refs #2337.

This was SVN commit r15265.
2014-06-01 18:24:50 +00:00
..
components New unit renderer. 2014-06-01 18:24:50 +00:00
docs Updates example component documentation 2013-02-26 19:58:51 +00:00
helpers fix compiling problem caused by 8226d75715 2014-01-07 14:37:02 +00:00
scripting New unit renderer. 2014-06-01 18:24:50 +00:00
serialization Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
system New unit renderer. 2014-06-01 18:24:50 +00:00
tests Simplify component deserialization. 2014-06-01 18:14:09 +00:00
MessageTypes.h New unit renderer. 2014-06-01 18:24:50 +00:00
Simulation2.cpp Allow system components to be registered on the scripting side (so mods can make their own system components). 2014-05-18 13:44:08 +00:00
Simulation2.h Removes g_ScriptingHost and implements global to compartment 1 to 1 relation. 2014-01-04 10:14:53 +00:00
TypeList.h New unit renderer. 2014-06-01 18:24:50 +00:00