tywang2006 Posted September 7, 2016 Share Posted September 7, 2016 Hi I was working on a game with big number of textures and atlases. in init function, i have to initial may movieclip with mass animation (so many textures). I found when the assets loaded successfully, the game seems to stuck for several seconds then show the game scene. if i remove those movieclips. it works like a normal game. do you think it is due to my massive animation in those big number of textures. is there any way or solution to solve this issue. Thank you very much Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 8, 2016 Share Posted September 8, 2016 Yes, call "renderer.textureManager.updateTexture(someTex)" on every loaded texture before you start the game. Quote Link to comment Share on other sites More sharing options...
tywang2006 Posted September 8, 2016 Author Share Posted September 8, 2016 i check it is for webgl, is it same way to canvas renderer? thanks mate Quote Link to comment Share on other sites More sharing options...
tywang2006 Posted September 8, 2016 Author Share Posted September 8, 2016 actually it is slow because i called "this._iconMovie = new PIXI.extras.MovieClip(this.currentTextures);" this currentTextures has over 100 texture. and i generate iconMovie for 15 times at the beginning. if I dont generate iconMovie, everything is fast, the screen is shown after loading instantly. 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.