Jump to content

Random missing textures


pongstylin
 Share

Recommended Posts

So probably the only reason I see this bug is because I do not have a render loop.  I render as needed.  This is a case where I move my finger across the game board.  As my finger passes over an interactive object, it renders once to add a highlight and renders again to remove the highlight as my finger passes or is released.  This may cause a texture to be missed somewhere else in the scene.  It is not every time, but it can be reproduced consistently with multiple attempts.  It might be a sprite from a spritesheet like this or a whole image like the game board.  I have only observed this on multiple Android devices with Chrome.  I have not observed this on PC.

The attached image is an example where we have a knight showing its red trim, but not the rest of it (making it look transparent) and the shadow underneath seems to be missing as well.  All three parts are in the same spritesheet as different textures although the red trim has a color matrix filter applied to it.

I am using pixi 6.20, but have observed this same behavior in pixi 5 as well.  It seems like a pixi bug affecting only android devices.  What would you like to know to narrow down the root cause?

Screenshot_20220206-173948.png

Link to comment
Share on other sites

  • 2 weeks later...

After more observation, it is possible that the textures are misplaced rather than missing.  Again, it is random.  One render may place them in the right place, next wrong place, next right place again... all without me directly modifying the display objects.  Still, let me know if you can think of an assertion or any other test to try to figure out the root cause.

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...