API Reference · Controls

RenderTrigger

Namespace: Ava3D

public enum RenderTrigger

When Ava3DView draws a frame.

A viewer and an application want opposite defaults here, which is the whole reason this exists. A model viewer is nearly always orbiting, dragging or spinning something, so redrawing at display rate is both simplest and right. An application is mostly not: a game on its inventory screen, a CAD tool with a dialog over the viewport, a dashboard whose scene changed once when the data arrived. Those spend most of their running time showing a picture that is not moving, and drawing it sixty times a second is a GPU running flat out to produce the same image — which on a laptop is fan noise and battery, and in a browser tab is both plus a frame budget somebody else needed.

Values

ValueDescription
Continuous

Draw every frame the compositor offers. The default, and what this control did before the property existed — so nothing changes for anybody who does not ask.

OnDemand

Draw only after something changed: a new scene, a moved camera, a different render scale or backend, or a resize.

See also