Page 1 of 1

Delay in execution of 'tween'

Posted: Fri Nov 09, 2018 3:35 pm
by Jack Dandy
Hey, I'm having some delay problems, and I've been wondering where I could start optimizing stuff.
Let's say I have 256 tweening functions (Using the hump library) set to go at once. I'm not noticing any slowdown, but there is a noticeable delay before the tweenings actually start.
Would you say they'll always have a problem executing concurrently, or as long I keep stuff optimized in the background, they'll run better?

Or is there another trick to get tweens to execute faster?

Re: Delay in execution of 'tween'

Posted: Fri Nov 09, 2018 5:24 pm
by pgimeno
My bet is that the problem is in your code, not in the library. I don't see a reason for the tweens not to start when they are asked to. 256 tweens sounds like something very manageable. My own library, with an API based on hump's, can do that without problems, and then there's flux by rxi, made popular thanks to the impressive demo: viewtopic.php?t=77904

I haven't used hump's tweening, but I seriously doubt it has trouble handling these many tweens.

Re: Delay in execution of 'tween'

Posted: Fri Nov 09, 2018 5:53 pm
by Jack Dandy
Yeah, hmm.. Guess some optimization's in order then. Gotta clean up these .update and .draw functions from the generic loops.
Thanks man.