SDL_HINT_VIDEO_OFFSCREEN_SAVE_FRAMES(3)
π NAME π
SDL_HINT_VIDEO_OFFSCREEN_SAVE_FRAMES β bestie, this is the hint that decides whether the offscreen video driver is out here saving its output frames or just living its truth invisibly β¨
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_VIDEO_OFFSCREEN_SAVE_FRAMES "SDL_VIDEO_OFFSCREEN_SAVE_FRAMES"
π DESCRIPTION π
Okay so, real talk: this one only saves frames that were made with software rendering. Accelerated OpenGL rendering? Not it. Those frames are NOT getting saved, no matter how much you beg. π
Now for the values, because the way this hint works is genuinely so simple:
"0"β video frames are not saved to disk. This is the default, the chill setting, the "we're just vibing" option. π"1"β video frames are saved to files, and the format is"SDL_windowX-Y.bmp", where X is the window ID and Y is the frame number. So like, every single frame gets its own lil bmp moment. π
Heads up bestie: this hint can be set anytime. No weird timing rules, no "you had to do it before init" nonsense. Set it whenever. π«Ά
β AVAILABILITY β
This hint has been around since SDL 3.2.0. So if you're on something olderβ¦ no frames for you, sorry babe π
and that's the whole page, fr fr β go forth and save those frames (or don't, "0" is valid too, we don't judge) π¦β¨
Simple Directmedia Layer β SDL 3.4.18 β π stay iconic, hydrate, and read your manpages π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms