retrace_count(3alleg4)
β¨ NAME β¨
Hey bestie, welcome to retrace_count(3alleg4) π β this is the page for retrace_count, the retrace count simulator from the Allegro game programming library. That's the whole name vibe, periodt.
πΈ SYNOPSIS πΈ
#include <allegro.h>
extern volatile int retrace_count;
Okay so that's literally it: one #include, one extern volatile int, and the whole thing is giving main character energy. π
π« DESCRIPTION π«
okay so here's the tea, bestie π« β retrace_count is that girl when you want to keep track of retraces and control your program's speed without installing user timer functions. No cap.
Here's exactly how the count moves:
- If the retrace simulator is installed, this count is incremented on each vertical retrace π
- Otherwise, if the refresh rate is known, the count is incremented at the same rate β and yes, it's ignoring retraces π
- Otherwise, it is incremented 70 times a second β±οΈ
So basically: simulator installed? bump on every vertical retrace. Refresh rate known? bump at that same rate, retraces not invited to the party. Neither? bump 70 times a second. It's giving very flexible, very iconic, very "I got you" energy. β¨
And the whole point? This provides a way of controlling the speed of your program without installing user timer functions. So you get the timing control without the extra timer-function setup. Slay. π
π₯ SEE ALSO π₯
that's the whole page, bestie! source: Allegro, version 4.4.3. date: not listed on the footer β just the page name retrace_count(3alleg4). bye, go control your program's speed without installing user timer functions πππ¦
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms