refactor(physics): remove parsed collision graphs

Publish prepared GfxObj, Setup, CellStruct, and EnvCell collision records without retaining their parsed DAT BSP, polygon, vertex, or shape graphs. Strip temporary physics bundles at stable world commit, keep graph traversal only as an explicit test/tooling oracle, and report graph residency from actual retained fields.

Validated by 115 focused collision/streaming tests, a zero-warning Release build, and 8,413 passing Release tests with five pre-existing skips.

Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
Erik 2026-07-25 18:21:19 +02:00
parent feb80a67d9
commit 82f8d4f82e
18 changed files with 923 additions and 104 deletions

View file

@ -26,4 +26,17 @@ public sealed record PhysicsDatBundle(
new Dictionary<uint, DatEnvironment>(),
new Dictionary<uint, Setup>(),
new Dictionary<uint, GfxObj>());
/// <summary>
/// Drops parsed collision-bearing GfxObj and Environment/CellStruct graphs
/// after their immutable package assets have been resolved. The remaining
/// records are the small publication facts still consumed by building,
/// placement, and static-light owners.
/// </summary>
public PhysicsDatBundle WithoutCollisionGraphs() => new(
Info,
EnvCells,
Empty.Environments,
Setups,
Empty.GfxObjs);
}