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

Make MGLMapView non opaque by default - #7859

Merged
friedbunny merged 2 commits into
release-ios-v3.4.0from
fabian-opaque-ness
Jan 26, 2017
Merged

friedbunny merged 2 commits into
release-ios-v3.4.0from
fabian-opaque-ness

Conversation

@fabian-guerra

@fabian-guerra fabian-guerra commented Jan 25, 2017 •

Copy link
Copy Markdown
Contributor

According to #7256 to solve "flash of black" one alternative is set MGLMapView.opaque = NO but one concern was how this may affect the performance. Changing opaque = NO resulted in a reduction in FPS from an average of 50.63 to 49.61. This is unnoticeable but we can keep tracking this in case something comes up.

(Benchmark tests were done using bench app)

@fabian-guerra fabian-guerra added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS labels Jan 25, 2017
@fabian-guerra fabian-guerra added this to the ios-v3.4.0 milestone Jan 25, 2017
@fabian-guerra fabian-guerra self-assigned this Jan 25, 2017
@fabian-guerra
fabian-guerra requested review from 1ec5 and boundsj January 25, 2017 17:44
@friedbunny friedbunny modified the milestones: ios-v3.4.1, ios-v3.4.0 Jan 25, 2017
@friedbunny

friedbunny commented Jan 25, 2017 •

Copy link
Copy Markdown
Contributor

When you open a PR to fix an issue, please mention that issue number: #7256 in this case.

GitHub also allows you to automatically close an issue simply by including “Fixes #7256” (or similar). GitHub suggests doing this in the commit message, but that leads to a lot of noise if you end up rebasing — better to do it in the PR body.

(Note that issues auto-close once those commits have been merged into the master branch only.)

/cc @jmkiley

@boundsj

boundsj commented Jan 25, 2017

Copy link
Copy Markdown
Contributor

We should add notes to the ios and macos changelogs.

@1ec5

1ec5 commented Jan 25, 2017

Copy link
Copy Markdown
Contributor

The Android build is failing due to #7763. It looks like you branched off d829570. Please rebase against a current release-ios-v3.4.0, which will also give you a proper place to put in a changelog blurb.

Comment thread platform/macos/CHANGELOG.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This PR doesn’t change anything about the macOS SDK, since MGLMapView has separate implementations on iOS and macOS. The behavior is already correct on macOS, so you can remove this blurb.

@1ec5 1ec5 added performance Speed, stability, CPU usage, memory usage, or power usage and removed macOS Mapbox Maps SDK for macOS labels Jan 25, 2017
@friedbunny
friedbunny merged commit 85f485e into release-ios-v3.4.0 Jan 26, 2017
@friedbunny
friedbunny deleted the fabian-opaque-ness branch January 26, 2017 03:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

iOS Mapbox Maps SDK for iOS performance Speed, stability, CPU usage, memory usage, or power usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants