-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Prevent unnecessary texture upload on image source updates #12212
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 The only reservation I have is that it doesn't have a unit test, so it might regress in a future refactoring. Although I'm not sure whether this can be tested cleanly. Feel free to merge if not.
Is there any easy way to pull the PR build from CI to help test it? Alternatively, is there an estimate on when this fix lands in a release? |
@yuvadm Here's a build I made from this branch — hopefully enough to test this out: mapbox-gl-texture-fix.zip |
@yuvadm let us know once you give it a try in your context. |
@karimnaaji Yep, this fix definitely seems to do the trick! When can we expect it to be merged and released? |
Thanks for trying it out @yuvadm. This change will be carried out to the next release (v2.11.0) that we're aiming at deploying sometime this month. |
@karimnaaji @mourner is there any estimate on the v2.11 release date? |
hey @yuvadm , sorry for the delay. We're aiming at deploying a beta this week or early next week. We still have another pending fix we're going after before we can deploy the new release. |
Fixes a regression introduced by #11564.
The reason
texture.update
was added was mentioned as the following in the original PR:But this introduced another regression since the check did not account whether the image changed at all making it run most frames, where it was running previously only when the texture had to be created.
Launch Checklist
mapbox-gl-js
changelog:<changelog>Fix potential performance regression on image source updates</changelog>