gameforge - v0.1.12
    Preparing search index...

    Interface AssetsPreferences

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

    7.2.0

    PIXI

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

    Hierarchy (View Summary)

    Index

    Properties

    crossOrigin: null | string

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

    'anonymous'
    
    preferCreateImageBitmap: boolean

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

    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.

    true