Skip to main content
Known Participant
November 4, 2020
Question

createjs.Ticker.framerate does NOTHING

  • November 4, 2020
  • 3 replies
  • 581 views

So I have a movie that suffers a performance issue - half way down the movie I want to change the frame rate.

This seems to do nothing:

createjs.Ticker.framerate=1;

 

 

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Legend
    November 5, 2020

    Why do you want to change the framerate?

    Known Participant
    November 5, 2020

    I have a particle effect that slows down the framerate.  When the user turns it off the framerate returns to its very FAST frame rate.  I would like to control that.

    Legend
    November 5, 2020

    As I suspected, this is a terrible reason to want to change the frame rate.

     

    First, you can't predict what kind of hardware your end users will be running on. Could be something old and slow or something new and blazing fast. You have no way of knowing whether this particle effect will slow things down or not.

     

    Second, if your particle effect is slowing down the frame rate on what I'll assume is midrange hardware, then you need to fix that. Scale it down or implement it more efficiently. CreateJS is perfectly capable of rendering very complex particle system at a high frame rate.

    https://createjs.com/demos/easeljs/Cache.html

     

    Third, if you can't make the particle effect perform better, then just set your frame rate to the best it can manage on your test hardware without slowdown. It almost sounds like you're intentionally using the particle effect slowdown as a frame rate limiter, which if true would be a very, VERY bad idea.