Savegame thumbnails are generated incorrectly

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
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Savegame thumbnails are generated incorrectly

Post by Marisa the Magician »

Whenever the game is saved, the savepic.png comes out like this:
Image

This is happening even after commit a0695cb (which I thought would fix it).
Looking through my savegames, it seems the most recent one with a correct thumbnail is from 2aee68d, which is about a month old. Might take pretty long to bisect this.

Edit: It seems that thumbnails are generated correctly on software renderers. Also, the screen resolution / scaling changes the size of the little square area (the lower the resolution, the bigger the square is).
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:

Re: Savegame thumbnails are generated incorrectly

Post by wildweasel »

I seem to recall someone else having this problem, ages ago - what screen resolution is GZDoom using?
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Savegame thumbnails are generated incorrectly

Post by Marisa the Magician »

I run at 1920x1080 (native res). Sometimes with 0.5x scaling if I need extra FPS.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Savegame thumbnails are generated incorrectly

Post by drfrag »

Whatever it is it's not in my branch so it's a consequence of the refactor.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Savegame thumbnails are generated incorrectly

Post by _mental_ »

Is it on Linux? I tested on Windows and macOS but with no scaling.
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Savegame thumbnails are generated incorrectly

Post by Marisa the Magician »

Yes, this is on Linux.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Savegame thumbnails are generated incorrectly

Post by _mental_ »

Cannot reproduce this on Ubuntu 16.04 VM. Could you please attach your .ini file?
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Savegame thumbnails are generated incorrectly

Post by Marisa the Magician »

https://marisakirisa.me/tmp/gzdoom.ini

(refresh if it gave you a 403, seems like the permissions got a bit screwy when I uploaded the file)
User avatar
fakemai
Posts: 342
Joined: Mon Feb 12, 2018 12:26 am
Graphics Processor: Intel (Legacy GZDoom)
Location: Australia

Re: Savegame thumbnails are generated incorrectly

Post by fakemai »

Thought I'd give it a go with your INI and a current Git build (2d50f535ff666a9cb0a0d3fe97c31f07e5a6f9a8) but couldn't reproduce. Am running Debian Stable, but also an ancient Intel GM45, so don't put too much faith in this. It could well be system-dependent though.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Savegame thumbnails are generated incorrectly

Post by _mental_ »

I managed to reproduce this on Windows. Enable tone mapping (set gl_tonemap CVAR to true) and the bug will appear.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49072
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Savegame thumbnails are generated incorrectly

Post by Graf Zahl »

I cannot reproduce this with any tonemap (or other postprocessing) effect.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Savegame thumbnails are generated incorrectly

Post by _mental_ »

It should be enough to have gl_tonemap 1 and everything else by default.
BTW tonemap and lens distortion give even more weird picture
savepic.png
savepic.png (67.07 KiB) Viewed 399 times
Screen resolution is 1440x900, thumbnail size is 216x162 and this corresponds to black rectangle in the corner.
This seems to be introduces with this commit and it's somehow related to switching of render buffers target textures.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49072
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Savegame thumbnails are generated incorrectly

Post by Graf Zahl »

I'll leave this to dpJudas then. Apparently I missed something important about the setup and I do not want to make it worse.
dpJudas
 
 
Posts: 3044
Joined: Sat May 28, 2016 1:01 pm

Re: Savegame thumbnails are generated incorrectly

Post by dpJudas »

Okay, I'll take a look soon. Based on the screen shots, it probably has something to do with glViewport not being what the screenshot code reading from the back buffer expects.
XxMiltenXx
Posts: 219
Joined: Wed Jan 08, 2014 8:40 am
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: Savegame thumbnails are generated incorrectly

Post by XxMiltenXx »

I also have a savegame thumbnail issue that might be related:
FXAA-Savegame.png
This happens under Windows 10 (build 10.0.16299.431) when FXAA is enabled. I used a new INI file and simply enabled FXAA (doesn't matter which quality setting)
Post Reply

Return to “Closed Bugs [GZDoom]”