• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Question About PNG Crush

RyanC

Member
Hi All,
After looking in the manual to find out how to compress texture pages I found the gml_pragma("PNGCrush") function.

Couple of questions I could'n't find answers to in the manual:

Does this downgrade the image quality?

Are the images then uncompressed at game start or as they are used?

Will this have a performance impact on the game?
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator

RyanC

Member
Finally got around to testing this and I'm wondering if using PNG crush may even boost the game performance, as GMS will be drawing sprites with less file size?
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
Finally got around to testing this and I'm wondering if using PNG crush may even boost the game performance, as GMS will be drawing sprites with less file size?
PNG file size is irrelevant because GPU can't decompress PNG images in real-time so any images are uncompressed first.
 
Top