You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source should only be removed and re-added when the position of the actor changes (afaik we already do that), and in that case we do need to since the revealed area changes.
Profiling shows that rougly 2-3% of time is spent updating Shroud. They are hotspots next to running move activitied.
RemoveSource
andAddSource
and are typically called in sequence.Remove
removes the source from a hashmap andAdd
directly adds it again after.Proposal to add
UpdateSourceCells
method inAffectsShroud
and similar traits to take advantage of this method.Benefit:
Some profile results of a 16x16 replay:
The text was updated successfully, but these errors were encountered: