SDL_Delay(3)
hey bestie π welcome to the SDL_Delay(3) page, straight outta SDL3 FUNCTIONS. it's giving timer vibes, and you're gonna slay this. let's get into it β¨
π NAME π
SDL_Delay β okay so this function literally waits a specified number of milliseconds before returning. no cap, that's the whole job. π
β¨ SYNOPSIS β¨
okay so first you gotta include this header:
#include <SDL3/SDL_timer.h>
and then the function signature is:
void SDL_Delay(Uint32 ms);
π DESCRIPTION π
This function waits a specified number of milliseconds before returning. it waits at least the specified time, but possibly longer due to OS scheduling. so like, don't expect it to be exact, bestie β the OS is the main character here and it might make you wait a lil extra. π
πΈ FUNCTION PARAMETERS πΈ
msβ the number of milliseconds to delay. that's it, that's the whole parameter. iconic. π
π¦ THREAD SAFETY π¦
It is safe to call this function from any thread. so go off, call it from literally any thread you want, no cap. π―
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on an older version, sorry bestie, you're missing out. π
π₯ SEE ALSO π₯
xoxo, that's the whole page π brought to you by Simple Directmedia Layer, version SDL 3.4.18, and the one and only SDL_Delay(3). periodt. π β¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms