scofield Posted June 3, 2016 Share Posted June 3, 2016 Hello. Is usage of tweens can affect on performance and lead to fps drop? @rich Link to comment Share on other sites More sharing options...
drhayes Posted June 3, 2016 Share Posted June 3, 2016 What problem are you seeing? How many tweens are you making? Your question is kind of vague, like asking if adding sprites affects performance. The answer is "yes", but I don't think that's really what you wanted to ask. Link to comment Share on other sites More sharing options...
scofield Posted June 3, 2016 Author Share Posted June 3, 2016 1 hour ago, drhayes said: How many tweens are you making? About 50 tweens at a time. 1 hour ago, drhayes said: What problem are you seeing? I see some kind of freezes when using tween for animation. Link to comment Share on other sites More sharing options...
WombatTurkey Posted June 4, 2016 Share Posted June 4, 2016 Don't quote me, but I think tweens are more cpu bound. It also depends on what you're tweening (if it's a game object that effects the renderer) -- then yeah, it will affect fps for sure. @scofield What kind of animations are you doing? 50 seems a bit high per instance... If you have an example, feel free to send a link. Loved to check out what you're tweening exactly Link to comment Share on other sites More sharing options...
scofield Posted June 4, 2016 Author Share Posted June 4, 2016 @WombatTurkey I used tweens for enemies movement in association with graphic animations, but now I rewrite code with using Physics methods for movement. Link to comment Share on other sites More sharing options...
Recommended Posts