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

Make MGLMapView non opaque by default #7859

Merged
merged 2 commits into from
Jan 26, 2017

Conversation

fabian-guerra
Copy link
Contributor

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

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 boundsj and 1ec5 January 25, 2017 17:44
@friedbunny friedbunny modified the milestones: ios-v3.4.1, ios-v3.4.0 Jan 25, 2017
@friedbunny
Copy link
Contributor

friedbunny commented Jan 25, 2017

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
Copy link
Contributor

boundsj commented Jan 25, 2017

We should add notes to the ios and macos changelogs.

@1ec5
Copy link
Contributor

1ec5 commented Jan 25, 2017

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.

@@ -5,6 +5,7 @@
This version of the Mapbox macOS SDK corresponds to version 3.4.1 of the Mapbox iOS SDK. The two SDKs have very similar feature sets. The main differences are the lack of user location tracking and annotation views. Some APIs have been adapted to macOS conventions, particularly the use of NSPopover for callout views.

* Fixed an issue causing MGLMapView’s `camera`’s `heading` to be set to a negative value, indicating an undefined heading, when the map view faces northwest. The heading is now wrapped to between zero and 360 degrees, for consistency with MGLMapView’s `direction` property. ([#7724](https://github.com/mapbox/mapbox-gl-native/pull/7724))
* Fixed an issue causing MGLMapView flash of black. ([#7859](https://github.com/mapbox/mapbox-gl-native/pull/7859))
Copy link
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