Jump to content

[PIXI] What is Ticker?


d13
 Share

Recommended Posts

https://github.com/GoodBoyDigital/pixi.js/blob/master/src/core/ticker/Ticker.js#L6-L15

/** * A Ticker class that runs an update loop that other objects listen to. * This class is composed around an EventEmitter object to add listeners * meant for execution on the next requested animation frame. * Animation frames are requested only when necessary, * e.g. When the ticker is started and the emitter has listeners. * * @class * @memberof PIXI.ticker */

It is used to do the animating of MovieClips, but can be used for anything. It is kind of just a wrapper around requestAnimationFrame, commonly used for having separate loops from the main loop.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...