---
title: frameInterval
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skview/frameinterval
---

# frameInterval

The number of frames that must pass before the scene is called to update its contents.

## Declaration

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

## Discussion

Discussion The default value is 1, which results in your game being notified at the refresh rate of the display. If the value is set to a value larger than 1, the display link notifies your game at a fraction of the native refresh rate. For example, setting the interval to 2 causes the scene to be called every other frame, providing half the frame rate. Behavior is undefined with a value less than 1. This property is deprecated. Use preferredFramesPerSecond, or view(_:shouldRenderAtTime:) instead.

## See Also

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

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