2025-08-10 09:32 CEST

spring: maintenance eb3259db Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
Beherith hokomoko maintenance 2020-04-09 12:42:18 maintenance 11c87f33
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 ]