---
title: preferredFramesPerSecond
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skview/preferredframespersecond
---

# preferredFramesPerSecond

The animation frame rate that the view uses to render its scene.

## Declaration

```swift
var preferredFramesPerSecond: Int { get set }
```

## Discussion

Discussion When your application sets its preferred frame rate, the view chooses a frame rate as close to that as possible based on the capabilities of the screen the view is displayed on. The actual frame rate chosen is usually a factor of the maximum refresh rate of the screen to provide a consistent frame rate. For example, if the maximum refresh rate of the screen is 60 frames per second, that is also the highest frame rate the view sets as the actual frame rate. However, if you ask for a lower frame rate, the view might choose 30, 20, or 15 frames per second, or another rate, as the actual frame rate. Your application should choose a frame rate that it can consistently maintain. The default value is 60 frames per second.

## See Also

### Controlling the Timing of a Scene’s Rendering

- [isPaused](spritekit/skview/ispaused.md)
- [delegate](spritekit/skview/delegate.md)
- [SKViewDelegate](spritekit/skviewdelegate.md)
- [frameInterval](spritekit/skview/frameinterval.md)
- [preferredFrameRate](spritekit/skview/preferredframerate.md)
