ReadonlymodeThe renderer drawing the video now; the same as SystemInfo.rendering.
ReadonlyreasonWhy RenderingState.mode is what it is now.
ReadonlypreferenceThe saved choice; it applies from the next start.
ReadonlynextThe renderer the next start will use, as far as the player knows now: from the saved choice, the environment, the driver denylist and an earlier GPU crash.
ReadonlynextWhy the next start will use RenderingState.nextMode.
Readonlyrestarttrue while RenderingState.nextMode differs from the mode this
run started with, so a restart would change the renderer; false again
when the user changes the choice back.
ReadonlygpuWhether the user can choose "gpu" now.
Readonlyavailable: booleantrue when setPreference("gpu") would be accepted.
Readonlyreason: RenderingReason | nullWhy "gpu" cannot be chosen (no-gpu-backend, headless,
denylist, previous-crash…); null while it is available.
What Rendering.state and Rendering.setPreference report: the renderer drawing now and why, the saved choice, what the next start will use, and whether
"gpu"can be chosen.Example: Label a menu item while a change waits for a restart
The plugin adds "(Restart to Apply)" to its GPU item after the user changed the choice.
restartPendingcompares the mode the next start will use with the mode this run started with, so it turns false again when the user changes the choice back.Player
0.5.13
Since
1.5.35