al_wait_for_vsync(3alleg5)
π¦ al_wait_for_vsync(3alleg5) π¦
okay bestie, listen β this is the Allegro 5 page for al_wait_for_vsync, and it's giving "sync me to the monitor's vertical retrace" energy. Let's get into it. π
π NAME π
al_wait_for_vsync - Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_wait_for_vsync(void)
π DESCRIPTION π
It waits for the beginning of a vertical retrace. Lowkey simple, right? But ngl, some driver/card/monitor combinations may not be capable of this. So don't just assume it'll always work. π
Also, bestie, note how al_flip_display(3alleg5) usually already waits for the vertical retrace, so unless you are doing something special, there is no reason to call this function. Like, it's already doing the thing, so why double up? π
It returns false if not possible, and true if successful. That's the whole mood. β¨
π SEE ALSO π
mwah π from the Allegro reference manual β Allegro 5, page al_wait_for_vsync(3alleg5). No date printed on the page, but the reference manual vibes are eternal. π«Άπ periodt.
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms