GpuWorldState's constructor accepts an optional LandblockSpawnAdapter. AddLandblock calls OnLandblockLoaded with the post-merge loaded record; RemoveLandblock calls OnLandblockUnloaded with the landblock id at the top of the method (before state mutation). Both calls are gated behind WbFoundationFlag.IsEnabled — no behavioral change with flag off (existing tests pass without modification). GameWindow constructs the adapter under the flag and threads it into GpuWorldState. With flag on, atlas-tier scenery now drives WB ref counts; per-instance entities (ServerGuid != 0) are filtered out by the adapter and don't reach WB. Foundation for Task 13 (memory budget verification under stress). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| AcDream.App | ||
| AcDream.Cli | ||
| AcDream.Core | ||
| AcDream.Core.Net | ||
| AcDream.Plugin.Abstractions | ||
| AcDream.Plugins.Smoke | ||
| AcDream.UI.Abstractions | ||
| AcDream.UI.ImGui | ||