Skip to content

Add watched endpoint revisions and joined snapshot execution - #917

Draft
apotema wants to merge 5 commits into
feat/position-revisionsfrom
feat/watched-navigation-inputs
Draft

apotema wants to merge 5 commits into
feat/position-revisionsfrom
feat/watched-navigation-inputs

Conversation

@apotema

@apotema apotema commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Prepared matching needs immediate freshness checks without scanning graph inputs or rediscovering participants every frame. Add watched graph dependency revisions, indexed position freshness, membership notifications and a coalesced pending set in the world revision tracker. Shared position/hierarchy mutations enqueue affected participants without allocation; publication acknowledges only the matching revision. Raw backend membership writes require the documented notification companion.

Add a world-owned snapshot executor with one persistent worker plus the main thread. It joins the whole batch before returning, uses disjoint result ranges and falls back to the same serial callback on unsupported targets or spawn failure. Jobs must contain immutable snapshots and no live ECS access.

Stacked on #916. The pending set has one simulation-thread consumer per world; the executor is submitted from that thread. Validation: 1,517 engine tests and serial/threaded emscripten object compile probes pass. Pathfinder integration checks identical per-frame publication against the serial reference. Worker execution remains opt-in downstream; device performance is not yet established.

@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@apotema apotema changed the title Track watched graph-input mutations for prepared queries Add watched endpoint revisions and joined snapshot execution Oct 15, 2026
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.

1 participant