GBear Posted October 13, 2016 Share Posted October 13, 2016 hi. sometimes basetexture is failed to load? I don't kwow correct reason but it is happened if many images loaded at same time. specially it is happened with ios(iphone) so i wanna add reloading function. can you give me tips? i'm using pixi.js 3.0.11 yet.. thx a lot Quote Link to comment Share on other sites More sharing options...
alex_h Posted October 13, 2016 Share Posted October 13, 2016 Probably a better idea to not load all the images at the same time in the first place. Make a load queue to preload them in series rather than parallel. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted October 13, 2016 Share Posted October 13, 2016 Yep, I used reload function with 3.0.11. BTW, all plugins and filters are updated to v4, you can update too Quote Link to comment Share on other sites More sharing options...
GBear Posted October 16, 2016 Author Share Posted October 16, 2016 @alex_h that is not correct way. because i can't find any rule, sometimes load is good with a lot of images, sometimes not good with not lots of images..@ivan.popelyshev hi ivan.. where is reload function with 3.0.11? i can't find anywhere? and which time can use it? error trigger with basetexture? Quote Link to comment Share on other sites More sharing options...
GBear Posted October 16, 2016 Author Share Posted October 16, 2016 @ivan.popelyshev and i can't update to v4 yet.. we have no time to update it.. we will hope to update to v4 soon.. Quote Link to comment Share on other sites More sharing options...
GBear Posted October 20, 2016 Author Share Posted October 20, 2016 @ivan.popelyshev where is reload function ivan ^^/? Quote Link to comment Share on other sites More sharing options...
xerver Posted October 20, 2016 Share Posted October 20, 2016 If you use the loader it will tell you when it fails, and you can reset and load again. BaseTexture is not a loader, it doesn't have loading features. Quote Link to comment Share on other sites More sharing options...
GBear Posted October 21, 2016 Author Share Posted October 21, 2016 @xerver hi i load by PIXI.BaseTexture.fromImage how can i check? if no, what can we do to check failed? thx xerver Quote Link to comment Share on other sites More sharing options...
xerver Posted October 21, 2016 Share Posted October 21, 2016 http://pixijs.github.io/docs/PIXI.BaseTexture.html#event:error As stated in the docs there are events that base texture will emit when certain events happen, like a load error. 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.