BMP Screenshot Option
When taking higher resolution screenshots, it takes multiple seconds. Maybe bypassing the PNG encoding time might help.
Add an option to save screenshot as BMP or other uncompressed image format.
Some kind of raw dump that can be converted to a screenshot later? Maybe also an option to choose a scaling factor or absolute resolution for the screenshots.
What kind of resolution are you using and what are your specs?
What kind of resolution are you using and what are your specs?
For the screenshots I was using "8x", which ends up being 3840 vertical for Sonic Adventure. And at the widest I can get it before it started having graphical problems or crashing, it's about 15436x3840. Largest PNG is about 78MB. 177,822,774 bytes as a BMP. I've turned off as much filtering and AA as I can. Specs: AMD Ryzen 5 2600, MSI Radeon RX 580 4GB, 32GB DDR4 at 2133MHz.
PS: Yes I've tried turning on XMP or whatever. It just fails the training. I'm not gonna spend more money on RAM until I upgrade to AM5/DDR5.
It's worth mentioning that stb_image_write supports different compression levels that correlate with image encoding performance. Might be worth exposing as a config option. The PNG encoder in particular lets you set the zlib compression-level, defaulting to 8. https://github.com/nothings/stb/blob/4c5645949723fbb9c060c3f94157331fa1d043bf/stb_image_write.h#L99-L100
The TGA encoder allows you to disable RLE compression as well, allowing for faster saves: https://github.com/nothings/stb/blob/4c5645949723fbb9c060c3f94157331fa1d043bf/stb_image_write.h#L106-L107
You can't expect screenshots to be instantaneous with such a resolution, whether compressed or not. Also you are much more likely to run out of VRAM, or hit your GPU limits in complex scenes in per pixel mode (which you should be using).
You can't expect screenshots to be instantaneous with such a resolution, whether compressed or not. Also you are much more likely to run out of VRAM, or hit your GPU limits in complex scenes in per pixel mode (which you should be using).
I agree. But can we have BMP screenshots?