Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] Sample the gaussian function once per texture sample - #40949

Merged
bdero merged 2 commits into
flutter-team-archive:mainfrom
bdero:bdero/remove-second-gaussian-sample
Apr 6, 2023
Merged

bdero merged 2 commits into
flutter-team-archive:mainfrom
bdero:bdero/remove-second-gaussian-sample

Conversation

@bdero

@bdero bdero commented Apr 5, 2023

Copy link
Copy Markdown
Contributor

Follow-up to remove the second gaussian sample, which isn't really improving quality.

For both before and after, I don't think we're sampling from the center of texels, and this is causing textures with high frequency info to "ripple" a bit when slowly increasing the blur radius (another issue might be that our texture downsizing is, again, too aggressive too early). I'm currently working out the best way to fix this and may follow-up with something.

@bdero
bdero requested a review from jonahwilliams April 5, 2023 20:15
@bdero bdero self-assigned this Apr 5, 2023

@jonahwilliams jonahwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

I have seen the rippling, but thats in both the before and after versions. But my change assumes that we were sampling the from the center before. Should we just back that out entirely?

@bdero

bdero commented Apr 6, 2023

Copy link
Copy Markdown
Contributor Author

Yeah just like with the text UV mapping, I don't think we were doing it properly to begin with. I tested out before/after your change and it doesn't seem to make the problem any worse than it already was, so I think we should keep it.

@jonahwilliams

Copy link
Copy Markdown
Contributor

SGTM, ship it

@chinmaygarde chinmaygarde added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 6, 2023
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Apr 6, 2023
@auto-submit

auto-submit Bot commented Apr 6, 2023

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/engine, pr: 40949, due to - The status or check suite Linux Unopt has failed. Please fix the issues identified (or deflake) before re-applying this label.

@flutter-dashboard

Copy link
Copy Markdown

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

Changes reported for pull request #40949 at sha 1ebeee4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

3 participants