Files
MapLibreParticleLab/platform/ios/src/MGLMapView_Experimental.h
Jason Wray 790b9f5c82 [ios] Add experimental frame rate measurements to MGLMapView
Includes: average frame rate, average frame render duration, and instantaneous frame render duration.
2018-08-16 16:46:54 -04:00

33 lines
841 B
Objective-C

#import <Mapbox/Mapbox.h>
@interface MGLMapView (Experimental)
#pragma mark Rendering Performance Measurement
/** Enable rendering performance measurement. */
@property (nonatomic) BOOL experimental_enableFrameRateMeasurement;
/**
Average frames per second over the previous second, updated once per second.
Requires `experimental_enableFrameRateMeasurement`.
*/
@property (nonatomic, readonly) CGFloat averageFrameRate;
/**
Frame render duration for the previous frame, updated instantaneously.
Requires `experimental_enableFrameRateMeasurement`.
*/
@property (nonatomic, readonly) CFTimeInterval frameTime;
/**
Average frame render duration over the previous second, updated once per
second.
Requires `experimental_enableFrameRateMeasurement`.
*/
@property (nonatomic, readonly) CFTimeInterval averageFrameTime;
@end