Skip to content

fix(rendering): take blur tap edge widths from the quad partners - #4964

Draft
richiemcilroy wants to merge 6 commits into
shots064/allfrom
fix/rendering-blur-tap-widths
Draft

richiemcilroy wants to merge 6 commits into
shots064/allfrom
fix/rendering-blur-tap-widths

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Motion blur taps now take their edge anti-aliasing width from the pixel's quad partners instead of fwidth. The taps run after the apron and border returns, where fwidth reads a neighbour that already returned, so blurred pixels next to a card's border came out wrong and, on WARP, changed from one draw to the next. Every early return stays where it was. On cards with different corner radii, the edge shortcut is skipped only for pixels whose taps can reach a centre line.

Testing

  • 624 blurred and 240 still draws against a reference with no early returns: 0 pixels off by more than 2 levels (max 1) on Apple M4 and macOS CI, including pills with unequal radii. On WARP the output is closer to the M4 picture than WARP's own reference.
  • Draws without motion blur are byte-identical to the base. Repeated draws are stable on every backend.
  • 4K draw time on Apple M4: blurred full card 11.63 -> 10.92 ms, still draws -0.05 ms, other padded draws equal or faster. Square-top cards: full +0.30 ms, padded +0.05 ms.
  • WARP compiles and draws its first frame like the previous head of this PR.

To do

Confidence Score: 5/5RetriggerView in Greptile

The PR appears safe to merge; no blocking issues were found.

Summary

Motion-blur taps now measure edge widths using nearby copies of the same tap, without depending on neighbours that may have returned early.

  • Motion-blurred cards now keep rounded edges consistent at their borders.

Reviews (8) · Last reviewed commit: "perf(rendering): measure blur tap edge w..." · Reviewed by Greptile

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Ignored Ignored Preview Dec 6, 2026 1:01am UTC

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

Each motion blur tap now measures its edge width from the pixel's quad
partners instead of fwidth, so the taps no longer depend on neighbours that
returned early. Cards with different corner radii skip the edge shortcut
only near their centre lines.
@richiemcilroy richiemcilroy changed the title fix(rendering): measure blur tap widths before any pixel returns fix(rendering): take blur tap edge widths from the quad partners Dec 5, 2026
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@blacksmith-sh

This comment has been minimized.

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

This branch has not been deployed

No deployments
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