PNG load speeds?

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

PNG load speeds?

Post by Enjay »

Tonight I was mesing around with some PNGs and I noticed that my WAD file size shrunk dramatically when I replaced some old Doom format graphics with PNGs using an optimised palette. So, I'm tempted to replace a whole load more of my custom textures too. However, before I do this, I'd like to know if GZDoom is likely to be able to read them quicker, or slower from the disk of if there will be no difference.

Based on pure file size, I'd think that smaller=quicker to load. However, remembering the "good old days" of much slower machines, compressed formats would often take considerably longer to load than uncompressed ones because the program doing the loading has to decompress them as well.

So, does Graf, or anyone else, know - what would GZDoom read quicker, a native format Doom texture or a PNG with an optimised palette?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Decoding the Doom patch format is not the most efficient thing as well. Overall the decoding time doesn't really matter. It takes longer to prepare the texture and upload it into texture memory than decoding the image.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

OK, thanks. That covers what I need to know.
Locked

Return to “GZDoom”