Simple DirectMedia Layer https://libsdl.org
Find a file
Frank Praznik 42463569d5 GPU: Vulkan backend flags command buffer for cleanup when swapchain is requested
When skipping presentation due to the window being hidden, presentDataCount is not incremented on the command buffer, and subsequently the submitted command buffers will not be cleaned up as long as the window is hidden. This results in a lag spike when showing the window due to all previously submitted command buffers suddenly being cleaned up at once, and lag at shutdown due to an equivalent number of fences needing to be destroyed.

Instead of relying on presentDataCount to determine whether a command buffer should be cleaned up, use a flag, which is set under the appropriate circumstances.
2025-08-02 09:24:02 -07:00
.github ci: Haiku does not need -DSDL_UNIX_CONSOLE_BUILD=ON 2025-08-02 03:39:38 +02:00
android-project Support Google Play 16 KB Page Size Requirement (#13470) 2025-07-31 16:12:54 -07:00
build-scripts Support Google Play 16 KB Page Size Requirement (#13470) 2025-07-31 16:12:54 -07:00
cmake windows: replace shobjidl_core.h usage with shobjidl.h except for when targeting xbox 2025-08-01 17:11:49 -07:00
docs Sync SDL3 wiki -> header 2025-07-30 03:04:38 +00:00
examples Restore support for the Nokia N-Gage (#12148) 2025-05-22 11:07:22 -07:00
include windows: replace shobjidl_core.h usage with shobjidl.h except for when targeting xbox 2025-08-01 17:11:49 -07:00
src GPU: Vulkan backend flags command buffer for cleanup when swapchain is requested 2025-08-02 09:24:02 -07:00
test Fix SDL_BlitSurfaceScaled crash 2025-08-01 09:22:20 -07:00
VisualC Implement SInput Device Support (#13343) 2025-07-15 18:35:47 -07:00
VisualC-GDK Implement SInput Device Support (#13343) 2025-07-15 18:35:47 -07:00
wayland-protocols wayland: Add support for the key repeat event (seat v10) 2025-07-06 11:28:04 -04:00
Xcode Implement SInput Device Support (#13343) 2025-07-15 18:35:47 -07:00
.clang-format Add 'wl_list_for_each_safe' to the clang-format macro list 2024-03-14 10:22:23 -04:00
.clang-tidy Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked 2023-08-05 14:14:45 -04:00
.editorconfig .editorconfig: Remove excess apostrophe at *.cocci 2024-06-16 09:18:17 -07:00
.gitignore Allow in-tree build 2024-10-30 00:04:17 +01:00
.wikiheaders-options wikiheaders: Let each subproject specify how to find their property symbols. 2025-06-17 16:41:24 -04:00
Android.mk Support Google Play 16 KB Page Size Requirement (#13470) 2025-07-31 16:12:54 -07:00
BUGS.txt Added a Discord link to BUGS.txt 2025-01-13 16:42:50 -08:00
CMakeLists.txt windows: replace shobjidl_core.h usage with shobjidl.h except for when targeting xbox 2025-08-01 17:11:49 -07:00
CREDITS.md Updated the credits for SDL 3.0 2025-01-13 16:42:50 -08:00
INSTALL.md Add a link to docs/INTRO-mingw.md 2025-03-06 16:25:17 -08:00
LICENSE.txt Updated copyright for 2025 2025-01-01 07:45:52 -08:00
README.md Updating documentation for the 3.2.0 release 2025-01-15 20:38:16 -08:00
WhatsNew.txt Added SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT 2025-03-05 09:07:05 -08:00

Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.

You can find the latest release and additional information at: https://www.libsdl.org/

Installation instructions and a quick introduction is available in INSTALL.md

This library is distributed under the terms of the zlib license, available in LICENSE.txt.

Enjoy!

Sam Lantinga (slouken@libsdl.org)