Skip to content

sparse_strips: Reduce powf calls for rounded blurred rects#1724

Open
LaurenzV wants to merge 2 commits into
mainfrom
laurenz/blur
Open

sparse_strips: Reduce powf calls for rounded blurred rects#1724
LaurenzV wants to merge 2 commits into
mainfrom
laurenz/blur

Conversation

@LaurenzV

@LaurenzV LaurenzV commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Someone with better math skills should double check this, but it makes sense to me.

lstampfl@MacBookPro vello_bench % cargo bench --bench main -- rounded --baseline main
fine/rounded_blurred_rect/with_transform_u8_neon
                        time:   [6.0929 µs 6.1034 µs 6.1149 µs]
                        change: [-55.059% -54.952% -54.849%] (p = 0.00 < 0.05)
                        Performance has improved.

For GPU, it doesn't seem to have much of an effect, but for consistency I still ported it over.

Done with assistance of GPT 5.5, high.

@LaurenzV
LaurenzV requested a review from tomcur July 4, 2026 06:28
@LaurenzV

LaurenzV commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator Author
image Diffs are just a few small 1 pixel changes

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