fix(rendering): bound portal resource lifetime
Separate logical ownership, render publication, and GPU retirement across live entities, landblocks, particles, textures, mesh arenas, portal/UI teardown, and per-frame scratch storage. Add bounded DAT/texture caches, upload budgets, three-frame fence retirement, exact-incarnation appearance reconciliation, frame pacing, and extensive lifetime conformance coverage.\n\nThe seven-destination connected route now cuts peak working/private memory roughly in half, returns Caul to 125-153 FPS locally, and produces no WER or AMD reset.\n\nCo-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
parent
3971997689
commit
749e8ceeb1
225 changed files with 29107 additions and 3914 deletions
|
|
@ -32,6 +32,27 @@ public class ClipPlaneSetTests
|
|||
return cv;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void From_ViewPolygon_MatchesSinglePolygonCellView()
|
||||
{
|
||||
var polygon = new ViewPolygon(new[]
|
||||
{
|
||||
new Vector2(-0.7f, -0.4f), new Vector2(0.2f, -0.4f),
|
||||
new Vector2(0.7f, 0.3f), new Vector2(-0.5f, 0.6f),
|
||||
});
|
||||
var view = new CellView();
|
||||
Assert.True(view.Add(polygon));
|
||||
|
||||
var fromView = ClipPlaneSet.From(view);
|
||||
var fromPolygon = ClipPlaneSet.From(polygon);
|
||||
|
||||
Assert.Equal(fromView.Count, fromPolygon.Count);
|
||||
Assert.Equal(fromView.UseScissorFallback, fromPolygon.UseScissorFallback);
|
||||
Assert.Equal(fromView.IsNothingVisible, fromPolygon.IsNothingVisible);
|
||||
Assert.Equal(fromView.ScissorNdcAabb, fromPolygon.ScissorNdcAabb);
|
||||
Assert.Equal(fromView.Planes, fromPolygon.Planes);
|
||||
}
|
||||
|
||||
// --- The three required tests (verbatim intent from the plan) -------------
|
||||
|
||||
[Fact]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue