Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Don't upload the FrameHistory texture in frames where it's not changing #9257

Merged
merged 2 commits into from
Jun 13, 2017

Conversation

jfirebaugh
Copy link
Contributor

When combined with #9185, brings FPS on the bench app to 60 on my iPhone 6 across all locations.

@jfirebaugh jfirebaugh requested review from kkaefer and ansis June 13, 2017 18:38
@jfirebaugh jfirebaugh changed the title [core] Don't upload the FrameHistory texture in frames where it's not changing [core] GL performance fixes Jun 13, 2017
@jfirebaugh jfirebaugh changed the title [core] GL performance fixes [core] Don't upload the FrameHistory texture in frames where it's not changing Jun 13, 2017
@jfirebaugh jfirebaugh force-pushed the frame-history-perf branch from 862b39e to d3b539e Compare June 13, 2017 19:22
Copy link
Contributor

@ansis ansis left a 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?

Copy link
Member

@kkaefer kkaefer left a comment

Choose a reason for hiding this comment

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

Nice catch!

opacities.data[z] = util::min(255, changeOpacities[z] + opacityChange);
} else {
opacities.data[z] = util::max(0, changeOpacities[z] - opacityChange);
uint8_t opacity = z <= zoomIndex
Copy link
Member

Choose a reason for hiding this comment

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

const

@jfirebaugh
Copy link
Contributor Author

For some reason this seems to be triggering timeouts on the Android Firebase tests. Can someone @mapbox/android take a look?

@zugaldia
Copy link
Member

@jfirebaugh looks like Firebase was in a bad state, canceling the jobs and restarting them did the trick.

@jfirebaugh jfirebaugh mentioned this pull request Jun 13, 2017
4 tasks
@jfirebaugh jfirebaugh merged commit 5e0018c into master Jun 13, 2017
@jfirebaugh jfirebaugh deleted the frame-history-perf branch June 13, 2017 21:35
@kkaefer kkaefer added the Core The cross-platform C++ core, aka mbgl label Jun 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants