Ayan Gupta Posted January 25, 2020 Share Posted January 25, 2020 Hi All, I have a game which uses a lot of spritesheets image sequence animations. I see a very bad lag and jerk when playing for the first time for most of the animations (specially when the animation sequence is distributed in multiple sprites). I have gone thru the forum and implemented prepare plugin in the below way : let texture = new PIXI.Texture.from(resources[k].name); Renderer.plugins.prepare.upload(texture, this.onUploadDone.bind(this)); But it did not help. Any idea how to solve this as the lag and jerk is too bad experience. Thanks in advance Ayan Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted January 25, 2020 Share Posted January 25, 2020 Just debug it . It should call `renderer.texture.bind` in the end. Also make sure you use latest pixi version, we fixed that thing last times in a few months. Quote Link to comment Share on other sites More sharing options...
Ayan Gupta Posted January 25, 2020 Author Share Posted January 25, 2020 I am using Pixi version 5.1.5. Not sure how to debug to renderer.texture.bind, any clue? Quote Link to comment Share on other sites More sharing options...
Ayan Gupta Posted January 25, 2020 Author Share Posted January 25, 2020 Well, with 5.2.0 the issue has been fixed. Thanks a lot Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted January 25, 2020 Share Posted January 25, 2020 Try 5.2.0 Debug `upload` method that you called. place breakpoints, trace what its doing, eventually it has to call that `renderer.texture.bind`. Or you can just delete this thing and call `renderer.texture.bind` directly 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.