Skip to content

T2.3: Damage-based partial rendering via per-node dirty flags#76

Merged
RtlZeroMemory merged 2 commits into
mainfrom
partial-rendering
Feb 18, 2026
Merged

T2.3: Damage-based partial rendering via per-node dirty flags#76
RtlZeroMemory merged 2 commits into
mainfrom
partial-rendering

Conversation

@RtlZeroMemory

Copy link
Copy Markdown
Owner

Summary

  • add per-node dirty tracking (dirty + selfDirty) on runtime instances during commit reconciliation
  • propagate dirty state up the runtime tree for child, prop, and layout-driven changes
  • enable clean-subtree skipping in render DFS while preserving clip stack correctness
  • force subtree rendering when a parent container is self-dirty to preserve visual equivalence under coarse damage rect redraws
  • clear runtime dirty flags after successful frame submission
  • document partial-rendering dirty/skip behavior in the layout guide

Tests

  • added correctness coverage in packages/core/src/renderer/__tests__/renderer.partial.test.ts (26 deterministic tests)
  • added perf coverage in packages/core/src/renderer/__tests__/renderer.partial.perf.test.ts (11 deterministic tests)
  • total new tests: 37

Validation

  • npm run lint
  • npm run build
  • npm run typecheck
  • node scripts/run-tests.mjs
    • pass: 2525
    • fail: 0

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b72275d44

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/core/src/runtime/commit.ts Outdated
@RtlZeroMemory
RtlZeroMemory merged commit 5cdde15 into main Feb 18, 2026
18 checks passed
@RtlZeroMemory
RtlZeroMemory deleted the partial-rendering branch February 19, 2026 17:45
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