Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize|World|SectorCluster: Avoid unnecessary Surface Decoration up…
…dates Previously if a mapped Plane move occurred then all of the Surfaces of LineSides in the cluster-linked Sector were marked for updating, irrespective of whether those surfaces are actually "dependent" on said plane. In large maps with lots of moving planes and light decorations, this meant a lot of unnecessary surface redecoration. SectorCluster's internal boundary info is automatically prepared the first time one of the dependent Planes move if needed (map hacks may mean this info is already prepared). The boundary info is then used to limit light decoration updates to only those Surfaces which share a boundary edge with the cluster. Todo for later: Free the boundary info if the dependent planes have not moved in a while.
- Loading branch information
1 parent
ee85b27
commit 5710d3d
Showing
2 changed files
with
45 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters