Enumeration RenderBackend

The render backend of a Ruffle player.

The available backends may change in future releases.

Enumeration Members

Enumeration Members

WebGpu: "webgpu"

An in-development API that will be preferred if available in the future. Should behave the same as wgpu-webgl, except with lower overhead and thus better performance.

WgpuWebgl: "wgpu-webgl"

The most featureful and currently preferred backend. Rendering is done the same way as in the desktop app, then translated to WebGL on-the-fly.

Webgl: "webgl"

A vanilla WebGL backend. Was the default backend until the start of 2023, but is now used as a fallback for devices that do not support WebGL 2. Supports fewer features and has a faster initialization time; may be useful for content that does not need advanced features like bitmap drawing or blend modes.

Canvas: "canvas"

The slowest and most basic backend, used as a fallback when all else fails. However, this is currently the only backend that accurately scales hairline strokes. If you notice excessively thick strokes in specific content, you may want to use the canvas renderer for that content until the issue is resolved.