Texture quality depends on assets loading order

Hello.

I’m programming a game engine based on Babylon Js and I found out that depending on the order I load assets, some textures qualities can change and become poor.

Some idea why this is happening?

Example:
If I load sun.png before robocillo.png, the robot texture is fine.
Screenshot_1

Instead, loading robocillo.png before sun.png will cause that the robot texture has a poor quality.
Screenshot_2

This is the JSON where I store assets and I sort their loading order:

NOTE: Robocillo.png is a 272x374 sprite sheet PNG. (34x34 is the cell size). Sun.png is a 270x270 PNG. Both loaded by SpriteManager.

1 Like

This sounds pretty odd :frowning: could you repro in the playground ? So we ll have a look into it ?