Methods to take custom control over the view's render rate.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+Beta
- tvOS 10.0+
By setting a SpriteKit view's
delegate with an object that implements
SKView, you can precisely control the frame rate of a game or app. You may choose to do this to maintain a consistent frame rate for computationally intensive code or for special effects such as simulating cine film.
The return value of
view: doesn't change the speed of physics simulations and actions in a SpriteKit scene. However, if you return
NO, SpriteKit will skip updates and
SKScene methods are not called.