Share via


CADisplayLink.FrameInterval Property

Definition

Developers should not use this deprecated property. Developers should use 'PreferredFramesPerSecond' property.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr FrameInterval { [Foundation.Export("frameInterval")] get; [Foundation.Export("setFrameInterval:")] set; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("frameInterval")>]
[<set: Foundation.Export("setFrameInterval:")>]
member this.FrameInterval : nativeint with get, set

Property Value

IntPtr

nativeint

Attributes

Remarks

The default value is one, which means that your code is invoked once each time that a screen refresh will take place. If you set this value to two, then your method will only be invoked half the time (once every two frames) and so on.

In general, you should not skip frames. If your software can not keep up with the frame rate, it is better to increase the frame interval and deliver a consistent set of updates.

Applies to