lunarovich Posted January 24, 2015 Share Posted January 24, 2015 Hello! A curious thing happens when I try to get the localBounds of the sprite in every tick. The animation speeds up considerably. A simplethis.sprite.getLocalBounds(); in every tick is a culprit. Also, when I try to read translated local coordinates of the sprite, the animation is even faster. I have a wrapper object around a PIXI.Sprite. The animation acceleration happens when I do this in every tick:return A_.level.container.toLocal(A_.level.origin, this.sprite);where the level origin is a simple PIXI.Point set to (0, 0) and container is a PIXI.DisplayObject. (A_. is a namespace wrapper around my library.) Quote Link to comment Share on other sites More sharing options...
xerver Posted January 24, 2015 Share Posted January 24, 2015 https://github.com/GoodBoyDigital/pixi.js/issues/1376 Quote Link to comment Share on other sites More sharing options...
lunarovich Posted January 25, 2015 Author Share Posted January 25, 2015 Thanks! Looking forward for the Pixi v3. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.