How to use the @pixi/ticker.UPDATE_PRIORITY.UTILITY 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 / prepare / src / BasePrepare.js View on Github external
{
            this.ticking = false;

            const completes = this.completes.slice(0);

            this.completes.length = 0;

            for (let i = 0, len = completes.length; i < len; i++)
            {
                completes[i]();
            }
        }
        else
        {
            // if we are not finished, on the next rAF do this again
            Ticker.system.addOnce(this.tick, this, UPDATE_PRIORITY.UTILITY);
        }
    }

@pixi/ticker

Tickers are control the timings within PixiJS

MIT
Latest version published 9 months ago

Package Health Score

91 / 100
Full package analysis

Similar packages