Skip to content

ant-v2: AntHill demo buildout + Workbench off-CPU profiling + engine fences - #350

Merged
nockawa merged 3 commits into
mainfrom
ant-v2
May 16, 2026
Merged

nockawa merged 3 commits into
mainfrom
ant-v2

Conversation

@nockawa

@nockawa nockawa commented May 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements the ant-v2 branch work tracked in #349 — driven by enhancing the AntHill demo and the Workbench.

  • Engine — Runtime Fence system: new Runtime/internals/Fence/ (FenceContext, FenceExecSystem, FenceWorkItem, FenceWorkPlan, InternalScheduleBuilder, LiveFenceCostModel) for chunked parallel-query execution with an adaptive cost model; new public ChunkedCallbackSystem; RunIf → ShouldRun rename; typed tick-context systems; new SpatialMutationWithoutBarrierAnalyzer Roslyn analyzer.
  • Engine — ETW thread-scheduling profiling (new): EtwSchedulingPump emits ThreadContextSwitch (kind 254) records per on-CPU slice; ThreadSlot/ThreadSlotRegistry carry OS thread IDs; TelemetryConfig Runtime:ThreadScheduling gate; host-compat SetDllDirectory fix for non-default .NET hosts. Plus WriteTickFenceEvents records and spatial hardening.
  • Workbench — off-CPU profiling visualization (new): client-side kind-254 decoder, struct-of-arrays OffCpuStore, cross-tick gap derivation, hatched overlay bars (viewport-culled + LOD), O(log n) hit-test, detail pane, wait-reason tooltips, filter toggle. Plus other profiler-panel improvements and [JsonDerivedType] / Playwright-selector fixes.
  • AntHill (Godot demo): new simulation systems, world model, renderers, UI; substantially expanded TyphonBridge.
  • Tests: engine Fence/ShouldRun/TypedContext/ThreadScheduling suites; Workbench client off-CPU + decoder tests + Playwright canary.

See #349 for the full per-area inventory.

Closes #349

🤖 Generated with Claude Code

@nockawa
nockawa merged commit dff936e into main May 16, 2026
6 checks passed
@nockawa
nockawa deleted the ant-v2 branch May 16, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ant-v2: AntHill demo buildout + Workbench off-CPU profiling + engine fences

1 participant