[Fixed] My PNG a splode (2.0.92)

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Post by wildweasel »

Some graphics programs don't offer the user a choice when saving PNG files (ie. Pixia, Photoshop 6 i think) and might be saving them as interlaced. And doesn't it have a size difference as well?
User avatar
Csonicgo
Posts: 1193
Joined: Thu Apr 15, 2004 3:28 pm
Location: Leeds

Post by Csonicgo »

yes. thank you ww, that's my problem.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

wildweasel wrote:And doesn't it have a size difference as well?
Yes, interlaced PNGs are almost always larger.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

randy wrote:Fixed. The problem isn't that this is a PNG at all but that it has so many transparent regions per column. A standard Doom image would have crashed the same way, because it exceeds assumptions I made about the number of transparent areas that would need to be handled per column.
Interesting. I thought my earlier crashes were due to a bad import since XWE wasn't displaying them. I may have been running into this instead.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Note that this image is going to kill performance if you do display it, for the same reason it crashed before. If it was a series of vertical bars instead of horizontal bars, it will be faster.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

Would it perform better if I broke it up? I didn't have any problems displaying a 320x200 version of this.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

The best approach to take would probably be to use just a few horizontal bars (maybe around 8) and then draw that image several times to get the full image.
Post Reply

Return to “Closed Bugs [GZDoom]”