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