Simple DirectMedia Layer https://libsdl.org
Find a file
Ryan C. Gordon fa9c3331d5 main: Adjust how SDL_HINT_MAIN_CALLBACK_RATE works.
Now (only in the generic backend, where it is implemented), this hint is
always respected. Previously it would only be used if no windows were created,
to help reduce CPU load on things like loopwave.

Since it's always used now, the default has changed from 60 (Hz) to 0 (run as
fast as possible). Things like loopwave should still likely force this way
lower than the previous default (and already do: loopwave explicitly sets it
to 5).

The hint can now also be set to "waitevent" which will cause SDL_AppIterate
to only be called after new events have arrived, for apps that are entirely
driven by input and want to consume (almost) no power or CPU time until then.

Fixes #11093.
Fixes #11387.
2024-12-31 08:19:38 -08:00
.github ci: run emscripten on Ubuntu 22.04 2024-12-28 16:20:59 +01:00
android-project Added SDL_EVENT_FINGER_CANCELED 2024-12-30 19:13:02 -08:00
build-scripts cmake: don't create relocatable packages by default with non-MSVC toolchains 2024-12-28 02:04:00 +01:00
cmake cmake: Solaris' SunPro has alternative way to link to pthread libraries 2024-12-28 03:46:17 +01:00
docs Added support for inset handling on Android 15 2024-12-30 12:23:00 -08:00
examples examples/pen/01-drawing-lines: Match render target size to renderer output. 2024-12-28 15:36:02 -05:00
include main: Adjust how SDL_HINT_MAIN_CALLBACK_RATE works. 2024-12-31 08:19:38 -08:00
src main: Adjust how SDL_HINT_MAIN_CALLBACK_RATE works. 2024-12-31 08:19:38 -08:00
test Renamed SDL_ASYNCIO_CANCELLED to SDL_ASYNCIO_CANCELED 2024-12-30 19:13:02 -08:00
VisualC SDL_EVENT_QUIT when no window nor tray 2024-12-27 09:22:27 -08:00
VisualC-GDK SDL_EVENT_QUIT when no window nor tray 2024-12-27 09:22:27 -08:00
wayland-protocols wayland: Remove kde_output_order_v1 support 2024-10-19 11:16:30 -04:00
Xcode uikit: Patched to compile, added to Xcode project. 2024-12-28 15:36:02 -05: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 include: Filling in some more documentation gaps. 2024-12-18 01:18:40 -05:00
Android.mk SDL_EVENT_QUIT when no window nor tray 2024-12-27 09:22:27 -08:00
BUGS.txt Replaced \r\n with \n in SDL root files 2024-10-05 18:15:02 -07:00
CMakeLists.txt cmake: really disable xrandr by default on Solaris 2024-12-28 11:55:59 +01:00
CREDITS.md docs: Moved CREDITS and INSTALL to markdown format. 2023-11-29 12:31:27 -05:00
INSTALL.md (doc): make cmake build parallel on linux 2024-11-23 12:15:59 +01:00
LICENSE.txt Updated copyright for 2024 2024-01-01 13:15:26 -08:00
README-SDL.txt Replaced \r\n with \n in SDL root files 2024-10-05 18:15:02 -07:00
README.md Tweaking documentation for the SDL 3.0 preview release 2024-03-24 06:16:02 -07:00
WhatsNew.txt Replaced \r\n with \n in SDL root files 2024-10-05 18:15:02 -07:00

Simple DirectMedia Layer (SDL) Version 3.0

https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting with README.md. If you are migrating to SDL 3.0 from SDL 2.0, the changes are extensively documented in README-migration.md.

Enjoy!

Sam Lantinga (slouken@libsdl.org)