0ad/source/simulation2
josue 9157d07afc Look up modified entities in the range manager in constant time
GetLosVisibility linearly scanned m_ModifiedEntities for every queried
entity, and RequestVisibilityUpdate for every requested update. The
first frame rendered after a simulation turn queries the visibility of
every unit while the vector still holds every entity that moved during
the turn, making that frame O(units * moved entities).

Keep a non-serialized set mirroring the vector for the membership
tests. The vector remains the serialized representation and the
processing order in UpdateVisibilityData, so neither the serialized
state nor the order of VisibilityChanged messages change.
2026-06-12 18:09:34 +02:00
..
components Look up modified entities in the range manager in constant time 2026-06-12 18:09:34 +02:00
docs Remove UNUSED 2025-06-26 17:25:05 +02:00
helpers Replace M_PI with C++ numbers 2026-06-04 20:29:48 +02:00
scripting Remove Script::CreateArray 2026-02-08 19:27:50 +01:00
serialization Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
system Start the serializationtest at a specivic turn 2026-05-10 14:18:48 +02:00
tests Fix disabled serializer tests 2026-06-07 10:00:40 +02:00
MessageTypes.h Fix includes in source/simulation2 2025-08-08 07:10:11 +02:00
Simulation2.cpp Start the serializationtest at a specivic turn 2026-05-10 14:18:48 +02:00
Simulation2.h Remove LoadScripts from CSimualation2 2026-01-01 17:27:54 +01:00
TypeList.h Store whether a player is activ in C++ 2025-01-05 19:57:12 +01:00