-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
optimize style recalculation #2141
Comments
Looks like Let's hold of on any big picture refactoring of the style classes until data-driven styling lands. I have been refactoring them towards the architecture we need for data driven styling, at some performance cost. We can revisit perf afterwards. |
Quick profiling suggests that a heavy slowdown happened between 0.12 and 0.13 after @lucaswoj StyleLayer refactorings. Although in my profiles, Chrome doesn't mark it as unoptimized, it still takes about 3 times more time, which is pretty severe, so we might want to prioritize this. |
For reference, the PR in question is #1960 and possibly some follow-up PRs. |
@lucaswoj I looked through the changes in your #1932 data-driven styling PR, and they don't seem to contradict my optimizations in #2221, so let's review and merge the fix! |
Thank you for the consideration @mourner. 🙇 |
It takes 5-15ms to recalculate the mapbox-streets style. That's way too long for something that runs every frame while zooming.
Style recalculation takes twice as long as the rest of the rendering work done by the cpu:
We should have a benchmark for this.
The text was updated successfully, but these errors were encountered: