How to use the @pixi/ticker.Ticker.system 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.add(item);
        }

        // Get the items for upload from the display
        if (this.queue.length)
        {
            if (done)
            {
                this.completes.push(done);
            }

            if (!this.ticking)
            {
                this.ticking = true;
                Ticker.system.addOnce(this.tick, this, UPDATE_PRIORITY.UTILITY);
            }
        }
        else if (done)
        {
            done();
        }
    }

@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