-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core] Don't upload the FrameHistory texture in frames where it's not changing #9257
Conversation
862b39e
to
d3b539e
Compare
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.
This looks good
brings FPS on the bench app to 60 on my iPhone 6 across all locations.
It seems like having a benchmark that includes this significant cost would be good. Should the benchmark be changed to include zooming?
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.
Nice catch!
src/mbgl/renderer/frame_history.cpp
Outdated
opacities.data[z] = util::min(255, changeOpacities[z] + opacityChange); | ||
} else { | ||
opacities.data[z] = util::max(0, changeOpacities[z] - opacityChange); | ||
uint8_t opacity = z <= zoomIndex |
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.
const
For some reason this seems to be triggering timeouts on the Android Firebase tests. Can someone @mapbox/android take a look? |
@jfirebaugh looks like Firebase was in a bad state, canceling the jobs and restarting them did the trick. |
When combined with #9185, brings FPS on the bench app to 60 on my iPhone 6 across all locations.