Simple DirectMedia Layer https://libsdl.org
Find a file
Qiu Qiang 0bc2296756 Cache CGDisplayPixelsHigh result on macOS to reduce IPC overhead
CGDisplayPixelsHigh(kCGDirectMainDisplay) involves an IPC call to the
Window Server on each invocation. Cache the main display height in
SDL_CocoaVideoData and update it only when display configuration changes,
reducing overhead during high-frequency mouse event processing.

(cherry picked from commit 3ee8d1406c)
2026-01-02 12:29:36 -08:00
.github ci: Add steamrt4 workflows 2026-01-02 12:19:08 -05:00
android-project Add ProGuard rule for joystickSetLED method in SDLControllerManager 2026-01-02 07:31:37 -08:00
build-scripts Updated copyright for 2026 2026-01-01 09:48:19 -08:00
cmake Fix dynamic library handling for LibUSB 2026-01-02 07:39:42 -08:00
docs Update the iOS Xcode build requirements 2026-01-02 08:53:40 -08:00
examples Updated copyright for 2026 2026-01-01 09:48:19 -08:00
include Improve hint documentation 2026-01-02 07:33:17 -08:00
src Cache CGDisplayPixelsHigh result on macOS to reduce IPC overhead 2026-01-02 12:29:36 -08:00
test Updated copyright for 2026 2026-01-01 09:48:19 -08:00
VisualC SDL_test: allow disabling colorized output 2025-12-15 23:19:25 +01:00
VisualC-GDK Updated copyright for 2026 2026-01-01 09:48:19 -08:00
wayland-protocols wayland: Update the color management protocol 2025-12-15 13:54:31 -05:00
Xcode Updated to version 3.4.1 for development 2025-12-31 18:18:45 -08:00
.clang-format
.clang-tidy
.editorconfig .editorconfig: Remove excess apostrophe at *.cocci 2024-06-16 09:18:17 -07:00
.gitignore Updated .gitignore for png test data 2025-10-10 08:59:27 -07:00
.wikiheaders-options wikiheaders: Generate a current list of supported environment variables. 2025-09-02 15:49:52 -04:00
Android.mk android: remove dependency on cpu-features.h 2025-11-11 23:41:43 +00:00
BUGS.txt Added a Discord link to BUGS.txt 2025-01-13 16:42:50 -08:00
CMakeLists.txt cmake: Enable Vulkan support on OpenBSD 2026-01-02 00:18:38 +01: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 2026 2026-01-01 09:48:19 -08:00
README.md Revert "Update README.md" 2025-11-16 01:15:10 +03:00
WhatsNew.txt Added SDL_HINT_MOUSE_DPI_SCALE_CURSORS 2025-12-09 17:12:08 -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)