Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use different timingMode in one project?

See original GitHub issue

Hi! I have 2 different components on my page. Each of them uses tween.js for animation, but one of them should work with Ticker.timingMode = Ticker.RAF and another one should work with Ticker.timingMode = Ticker.TIMEOUT. So as Ticker is a global variable, I have no idea how to implement this. Maybe, it’s possible to call ticks manually for each component?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

lannymcniecommented, Apr 27, 2016

This isn’t currently possible. Multiple Ticker instances are on our roadmap though.

You can however set a framerate on any MovieClip or Sprite to get the speed you want.

gskinnercommented, Jan 17, 2017

Usually rendering the stage is the vast majority of the performance cost. Unless the actual tweens are really expensive, I’d consider just adding a bit of code to only update the preview stages every second. You could even do this using tween potentially:


If you did want to throttle the tweens as well, you could pause the preview tweens to remove them from the managed Tween list, and write a small script/class that uses tween.advance(1000) to advance them every second.

Let me know if that makes sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extend SKAction to override timingMode - Stack Overflow
Is it possible to use an extension to override this timingMode default to e.g. "easeInEaseOut" so ALL SKActions have timingMode = easeInEaseOut?
Read more >
NI-DAQmx multi-channel data acquisition LabVIEW program
UW MSE 311 Lab 1 - Day 3Measure, graph, and save data from multiple channels on a NI-DAQmx physical device.
Read more >
adjusted PWM period when use Timer In PWM Timing mode ...
I configure timer3 timer_B in PWM Timing mode for out put PWM,when it is Enable,the pin our put pwm wave which period and...
Read more >
EaselJS Tutorial: Animation and Ticker - CreateJS
Ticker() ) to propagate a tick to various objects. To use it we just add an ... timingMode allows you to choose what...
Read more >
Scan Chains: PnR Outlook - Design And Reuse
Chips without DFT implementation will mostly have only one timing mode of ... the capture timing mode execution for a scan chain is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found