Interface AssetsPreferences

Extensible preferences that can be used, for instance, when configuring loaders.

Since

7.2.0

Memberof

PIXI

interface AssetsPreferences {
    crossOrigin: null | string;
    preferCreateImageBitmap: boolean;
    preferWorkers: boolean;
}

Hierarchy (view full)

Properties

crossOrigin: null | string

The crossOrigin value to use for images when preferCreateImageBitmap is false.

Default

'anonymous'
preferCreateImageBitmap: boolean

When set to true, loading and decoding images will happen with createImageBitmap, otherwise it will use new Image().

Default

true
preferWorkers: boolean

When set to true, loading and decoding images will happen with Worker thread, if available on the browser. This is much more performant as network requests and decoding can be expensive on the CPU. However, not all environments support Workers, in some cases it can be helpful to disable by setting to false.

Default

true

Generated using TypeDoc