How to use the @pixi/ticker.UPDATE_PRIORITY.HIGH function in @pixi/ticker

To help you get started, we’ve selected a few @pixi/ticker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pixijs / pixi.js / packages / core / src / textures / VideoBaseTexture.js View on Github external
_onPlayStart()
    {
        // Just in case the video has not received its can play even yet..
        if (!this.hasLoaded)
        {
            this._onCanPlay();
        }

        if (!this._isAutoUpdating && this.autoUpdate)
        {
            Ticker.shared.add(this.update, this, UPDATE_PRIORITY.HIGH);
            this._isAutoUpdating = true;
        }
    }
github pixijs / pixi.js / packages / sprite-animated / src / AnimatedSprite.js View on Github external
play()
    {
        if (this.playing)
        {
            return;
        }

        this.playing = true;
        if (this._autoUpdate)
        {
            Ticker.shared.add(this.update, this, UPDATE_PRIORITY.HIGH);
        }
    }

@pixi/ticker

Tickers are control the timings within PixiJS

MIT
Latest version published 8 months ago

Package Health Score

91 / 100
Full package analysis

Similar packages