Automate WMO floor cache pre-computation

Add precomputeFloorCache() method that samples all WMO bounds at load time
and populates the persistent floor height grid. Called after terrain
streaming completes (initial spawn and teleport) when cache is empty.
This commit is contained in:
Kelsi 2026-02-05 17:30:08 -08:00
parent 125cf588bb
commit 12a7604450
3 changed files with 62 additions and 0 deletions

View file

@ -227,6 +227,9 @@ public:
bool loadFloorCache(const std::string& filepath);
size_t getFloorCacheSize() const { return precomputedFloorGrid.size(); }
// Pre-compute floor cache for all loaded WMO instances
void precomputeFloorCache();
private:
/**
* WMO group GPU resources