Repository navigation
feat(compat.sdl3): switch no-render-accelerated for 3.4.18 (revision 2) - #829
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One more feature of
compat.sdl3, off by default:no-render-acceleratedundefines 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 generatedSDL_build_config.h.SDL_Rendererkeeps its software back end; SDL_GPU itself stays.SDL_Renderer(Linux x64, GCC 16, -O3): 235 KB less of an 18.1 MB program; first frame shown as before.