Skip to content

DetectOptions

Options to choose and set up a renderer.

optional failIfMajorPerformanceCaveat?: boolean

Refuse a context the browser says is much slower than usual (software rendering). Default true.

GLOptions.failIfMajorPerformanceCaveat


optional instancing?: boolean

Turn off instancing / VAOs (tests, comparisons).

GLOptions.instancing


optional vao?: boolean

Turn off vertex array objects (tests, comparisons).

GLOptions.vao


optional renderer?: RendererChoice

Force one (‘webgl’: 2, else 1). ‘auto’ (default): the order above. A forced one that fails falls back too.