Contents

isJitteringEnabled

A Boolean value that determines whether SceneKit applies jittering to reduce aliasing artifacts.

Declaration

var isJitteringEnabled: Bool { get set }

Discussion

Jittering is a process that SceneKit uses to improve the visual quality of a rendered scene. While the scene’s content is still, SceneKit moves the pointOfView location very slightly (by less than a pixel in projected screen space). It then composites images rendered after several such moves to create the final rendered scene, creating an antialiasing effect that smooths the edges of rendered geometry.

By default, the value of this property is false, specifying that SceneKit should not perform jittering. Change the value to true to enable jittering.

Because the SCNView and SCNLayer classes perform jittering automatically and asynchronously, enabling jittering for these classes has minimal impact on rendering performance. The SCNRenderer class performs jittering synchronously, incurring a high performance cost. With this class, jittering is suitable for rendering single frames on demand, but not for real-time rendering.

See Also

Managing Scene Display