NessEngine Posted August 16, 2016 Share Posted August 16, 2016 So I'm working on my game editor, and I noticed a weird behavior: after I play around with tiles and objects (eg draw different tiles, add trees rock etc. and then delete them, move objects around..), at some point PIXI will get into a state where its no longer able to load new textures. I don't preload all my object's textures, I load only for objects when I need them (if for example I want to put a barrel and don't have its texture loaded yet, I will load the texture especially for the barrel instance). When getting into the stuck mode, all future textures I load will never actually load and always be with valid = false, but no error will appear. I'm loading textures like this: PIXI.Texture.fromImage(texture_name_full, undefined, PIXI.SCALE_MODES.NEAREST); Am I doing something wrong here? Does PIXI have limited amount of textures it can handle? How to address / debug this issue? Thanks! Quote Link to comment Share on other sites More sharing options...
NessEngine Posted August 16, 2016 Author Share Posted August 16, 2016 nvm It was a problem with the server serving the static files (textures). 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.