How to use different timingMode in one project?
See original GitHub issueHi! 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:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.