PlanetKitFpsLimitUpdateDelegate
@objc
public protocol PlanetKitFpsLimitUpdateDelegate
A protocol that defines methods for handling FPS (Frames Per Second) limit updates in the PlanetKit framework.
The PlanetKitFpsLimitUpdateDelegate
protocol should be adopted by classes or structs that want to receive updates about the optimal FPS for the PlanetKit SDK.
The delegate methods provide information about whether the FPS limit is enabled and the recommended FPS value to optimize the performance of PlanetKitCameraControllable
and PlanetKitScreenControllable
implementations.
Note
The delegate methods are optional, and you can choose to implement them based on your needs.-
Informs the delegate about the optimal FPS. Implement this method to receive updates about the FPS limit.
Note
This method is optional. You can choose to implement it based on your needs.Declaration
Swift
@objc optional func didFpsLimitUpdate(enabled: Bool, fps: Int32)
Parameters
enabled
A Boolean value indicating whether the FPS limit is enabled.
fps
The recommended FPS value to optimize the performance.