salty-engine icon indicating copy to clipboard operation
salty-engine copied to clipboard

[BUG] Image files cannot be loaded as SaltyVolatileImage

Open sanj0 opened this issue 6 years ago • 4 comments

Describe the bug You cannot load image files (e.g. the SpriteSheets in the testing package) as SaltyVolatileImages, however, all the other images (lights, and the final render) are shwon as usual.

To Reproduce Steps to reproduce the behavior:

  1. Set SaltySystem#preferredImageType to ImageType.VOLATILE
  2. Run testing.Tester

Expected behavior The exact same thing as with ImageType.BUFFERED

Screenshots Bildschirmfoto 2019-07-03 um 07 29 44

Desktop:

  • OS: MacOS

Additional context Running 0.14.16-local

sanj0 avatar Jul 03 '19 05:07 sanj0

Setting the preferred image type to VOLATILE produces an even weirder result now. Bildschirmfoto 2020-01-11 um 15 12 38

sanj0 avatar Jan 11 '20 14:01 sanj0

Setting the preferred image type to VOLATILE produces an even weirder result now. Bildschirmfoto 2020-01-11 um 15 12 38

This still happens with SaltySystem.prefferedImageType = SaltySystem.ImageType.VOLATILE in 0.14.19

sanj0 avatar Apr 06 '20 12:04 sanj0

As because of this bug, SaltySystem.prefferedImageType has become irrelevant for development, I am no longer sure where it is even respected and where the library just produces 'SaltyBufferedImages' per default.

sanj0 avatar Sep 02 '21 09:09 sanj0

Using Salty Engine 0.15-SNAPSHOT, a prototype for my game renders very laggy with SaltySystem.prefferedImageType = SaltySystem.ImageType.VOLATILE and only shows custom rendered UI and a single sprite (which is the only one to have pixels with transparency != 0 or 1 - coincidence?)

sanj0 avatar Sep 02 '21 09:09 sanj0