diff options
author | Jason Wray <friedbunny@users.noreply.github.com> | 2018-07-31 15:20:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 15:20:05 -0400 |
commit | 885f6e3c02138398d094e49243817a83349b4d50 (patch) | |
tree | 5e29d15219589dc0d58d2a8d6d590f1ca5938096 /platform/ios/src/UIDevice+MGLAdditions.h | |
parent | c77aa79f51702179032b681fef2df31399fcec4f (diff) | |
download | qtlocation-mapboxgl-885f6e3c02138398d094e49243817a83349b4d50.tar.gz |
[ios] Add preferred FPS setting; vary maximum FPS by device capability
- Add `MGLMapView.preferredFramesPerSecond`, which can be set with the provided `MGLMapViewPreferredFramesPerSecond` enum values or directly with an integer.
- Adaptively set the preferred FPS based on the capabilities of the device: the oldest and least powerful devices are now capped at 30 FPS, which results in a more consistent/smoother experience.
Diffstat (limited to 'platform/ios/src/UIDevice+MGLAdditions.h')
-rw-r--r-- | platform/ios/src/UIDevice+MGLAdditions.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/ios/src/UIDevice+MGLAdditions.h b/platform/ios/src/UIDevice+MGLAdditions.h new file mode 100644 index 0000000000..a61aedf2db --- /dev/null +++ b/platform/ios/src/UIDevice+MGLAdditions.h @@ -0,0 +1,7 @@ +#import <UIKit/UIKit.h> + +@interface UIDevice (MGLAdditions) + +@property (nonatomic, readonly) BOOL mgl_isLegacyDevice; + +@end |