2025-07-20 00:49 CEST

spring: develop 32ba4ca3 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
Beherith hokomoko develop 2020-04-09 12:42:18 develop 9fdfe7c3
Changeset LOAM: early bailout for visibility calculations on no change, reduce for_mt overhead


A. There are 4 conditions that can require a visibility/retess check:
1. Camera position change
2. camera direction change
3. heightmap change
4. grounddetail param change
Otherwise we can bail on a lot of expensive things

B. for_mt seems to have a high setup cost, and spins threads needlessly.
for_mt vertex index generation is only useful when a full retesselation is performed, otherwise the number of patches that need their indices regenerated is likely less than the number of threads.

C. side note: /debugview performance is now not strongly affected, side effect of less for_mt?
mod - rts/Map/SMF/ROAM/RoamMeshDrawer.cpp Diff ] File ]
mod - rts/Map/SMF/ROAM/RoamMeshDrawer.h Diff ] File ]