Skip to content

feat(compat.sdl3): switch no-render-accelerated for 3.4.18 (revision 2) - #829

Merged
Sunrisepeak merged 1 commit into
mainfrom
compat-sdl3-no-render-accelerated
Nov 18, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
compat-sdl3-no-render-accelerated

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

One more feature of compat.sdl3, off by default: no-render-accelerated undefines the 2D renderer's accelerated back ends (Direct3D, Metal, Vulkan, OpenGL, OpenGL ES 2, and the one over SDL_GPU) at the end of the generated SDL_build_config.h. SDL_Renderer keeps its software back end; SDL_GPU itself stays.

  • Default build unchanged (the feature is off).
  • Measured on a consumer that only presents its own frames through SDL_Renderer (Linux x64, GCC 16, -O3): 235 KB less of an 18.1 MB program; first frame shown as before.
  • 3.4.18's packaging: revision 2, floor 2 (the generated header is part of the installed payload).

One more feature, off by default, so the default build is the one it was: at
the end of the generated SDL_build_config.h, after every platform's config,
it undefines the 2D renderer's accelerated back ends (SDL_VIDEO_RENDER_D3D,
_D3D11, _D3D12, _GPU, _METAL, _VULKAN, _OGL, _OGL_ES2). SDL_Renderer keeps
its software back end and presents through the window's surface; SDL_GPU
itself stays for a program that uses it.

Measured on a consumer that draws its own frames and uses SDL_Renderer only
to present them (Linux x64, GCC 16, -O3): 235 KB less of an 18.1 MB program;
its first frame is shown as before.

3.4.18's packaging is revision 2 with floor 2: the generated header is part of
the installed payload, so installed copies are replaced to take the switch.
@Sunrisepeak
Sunrisepeak merged commit d719688 into main Nov 18, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant