Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate tile rendering from widgets to CustomPainter #1908

Closed
wants to merge 4 commits into from

Conversation

JaffaKetchup
Copy link
Member

Superceeds #1853.

Replaced `TileBuilder` with `TileOverlayPainter`
Updated examples
@JaffaKetchup JaffaKetchup marked this pull request as ready for review June 6, 2024 13:19
@JaffaKetchup JaffaKetchup changed the base branch from master to breaking-changes June 6, 2024 13:20
Copy link
Member Author

@JaffaKetchup JaffaKetchup left a comment

Choose a reason for hiding this comment

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

I can't find as much of a performance improvement as @ReinisSprogis would seem to suggest. It appears to have done barely anything. Can anyone else do some benchmarking?

@ReinisSprogis
Copy link
Contributor

I did some tests and found that CPU usage reduction is still there. With stack approach i was getting ~60+% CPU usage but with CustomPainter ~20-%
flutter run -d chrome --release --web-renderer canvaskit On example folder

master branch
chrome-widget-stack-edited

tile-layer-canvas branch

tile-canvas-edited

@josxha
Copy link
Contributor

josxha commented Jun 7, 2024

@JaffaKetchup It appears that #1907 got merged into this pr instead of master into breakin-changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants