.\" This manpage content is licensed under Creative Commons
.\"  Attribution 4.0 International (CC BY 4.0)
.\"   https://creativecommons.org/licenses/by/4.0/
.\" This manpage was generated from SDL's wiki page for SDL_HINT_MAIN_CALLBACK_RATE:
.\"   https://wiki.libsdl.org/SDL_HINT_MAIN_CALLBACK_RATE
.\" Generated with SDL/build-scripts/wikiheaders.pl
.\"  revision release-3.2.10-0-g877399b2b
.\" Please report issues in this manpage's content at:
.\"   https://github.com/libsdl-org/sdlwiki/issues/new
.\" Please report issues in the generation of this manpage from the wiki at:
.\"   https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_HINT_MAIN_CALLBACK_RATE
.\" SDL can be found at https://libsdl.org/
.de URL
\$2 \(laURL: \$1 \(ra\$3
..
.if \n[.g] .mso www.tmac
.TH SDL_HINT_MAIN_CALLBACK_RATE 3 "SDL 3.2.10" "Simple Directmedia Layer" "SDL3 FUNCTIONS"
.SH NAME
SDL_HINT_MAIN_CALLBACK_RATE \- Request 
.BR SDL_AppIterate
() be called at a specific rate\[char46]
.SH HEADER FILE
Defined in SDL3/SDL_hints\[char46]h

.SH SYNOPSIS
.nf
.B #include \(dqSDL3/SDL.h\(dq
.PP
.BI "#define SDL_HINT_MAIN_CALLBACK_RATE "SDL_MAIN_CALLBACK_RATE"
.fi
.SH DESCRIPTION
If this is set to a number, it represents Hz, so "60" means try to iterate
60 times per second\[char46] "0" means to iterate as fast as possible\[char46] Negative
values are illegal, but reserved, in case they are useful in a future
revision of SDL\[char46]

There are other strings that have special meaning\[char46] If set to "waitevent",

.BR SDL_AppIterate
 will not be called until new event(s) have
arrived (and been processed by 
.BR SDL_AppEvent
)\[char46] This can be
useful for apps that are completely idle except in response to input\[char46]

On some platforms, or if you are using 
.BR SDL_main
 instead of

.BR SDL_AppIterate
, this hint is ignored\[char46] When the hint can
be used, it is allowed to be changed at any time\[char46]

This defaults to 0, and specifying NULL for the hint's value will restore
the default\[char46]

This hint can be set anytime\[char46]

.SH AVAILABILITY
This hint is available since SDL 3\[char46]2\[char46]0\[char46]