mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
125cf588bb
commit
12a7604450
3 changed files with 62 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue