Jump to content

PIXI stop loading textures after a while


NessEngine
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...