get_refresh_rate(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– get_refresh_rate β€” Allegro manual, bestie edition πŸ’–

okay so this is a lil function from the Allegro game programming library (yes, that Allegro, the one from get_refresh_rate(3), we're literally in it rn) and it's here to tell you how fast your screen is refreshing. no cap.


✨ NAME ✨

get_refresh_rate β€” returns the current refresh rate. πŸ¦‹ Allegro game programming library.


✨ SYNOPSIS ✨

#include <allegro.h>

int get_refresh_rate(void);

✨ DESCRIPTION ✨

So basically πŸ’… β€” this one returns the current refresh rate, if known. and that "if known" is doing a LOT of heavy lifting here, because not all drivers are able to report this information 😭.

If the actual rate is unknown, it returns zero. that's it, that's the vibe check. zero means "idk bestie, your driver isn't telling me" πŸ™ˆ.


✨ SEE ALSO ✨


mwah πŸ’œ this page is from the Allegro manual, version 4.4.3, dated back in the day β€” sending u all the love from the Allegro era, periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from