al_wait_for_vsync(3)
β¨ NAME β¨
al_wait_for_vsync β Allegro 5 API, bestie π. Itβs a page from the Library Functions Manual, and the whole thing is al_wait_for_vsync(3).
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
bool al_wait_for_vsync(void)
π DESCRIPTION π
Okay so this function waits for the beginning of a vertical retrace. Thatβs the vibe. β¨ Some driver/card/monitor combinations may not be capable of this, and that is genuinely not your fault. π
Also, important note: al_flip_display(3) usually already waits for the vertical retrace, so unless you are doing something special, there is no reason to call this function. Like, none. Donβt be extra for no reason. π
It returns false if not possible, and true if successful. Thatβs it. Periodt.
π SEE ALSO π
al_flip_display(3)β the one that usually already handles the vertical retrace waiting for you. π«Ά
Cute sign-off: source/version is the Allegro reference manual, and the footer didnβt list a date, so Iβm not inventing one. Stay slay, bestie. πβ¨
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms