SDL/src/main
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
..
emscripten main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
gdk Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
generic main: Adjust how SDL_HINT_MAIN_CALLBACK_RATE works. 2024-12-31 08:19:38 -08:00
ios main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
n3ds Use C++ style comments consistently in SDL source code 2024-08-22 13:30:02 -07:00
ps2 Use C++ style comments consistently in SDL source code 2024-08-22 13:30:02 -07:00
psp Use C++ style comments consistently in SDL source code 2024-08-22 13:30:02 -07:00
windows Use C++ style comments consistently in SDL source code 2024-08-22 13:30:02 -07:00
SDL_main_callbacks.c Make sure that we quit if we get a terminating event 2024-10-17 17:19:49 -07:00
SDL_main_callbacks.h main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
SDL_runapp.c Use C++ style comments consistently in SDL source code 2024-08-22 13:30:02 -07:00