API Reference · Controls

SwapPolicy

Namespace: Ava3D

public enum SwapPolicy

What happens on the frame after Ava3DView.Scene is assigned: draw the new scene at once, with stand-ins where its textures have not arrived, or keep showing the old one until they have.

Values

ValueDescription
Immediate

The new scene is drawn on the next frame, with a flat white stand-in for any texture still on its way and the real image a few frames later. The default, and what every release before this did.

WhenReady

The frame of the previous scene stays on screen, unchanged, until every texture and mesh of the new one is resident on the device; then the new scene is drawn, complete, on one frame. A view with no frame to keep — its first scene, or one that was reset — draws the new scene immediately as SwapPolicy.Immediate would. A scene that was prepared is resident already and switches on the next frame under either policy.

See also