enable_triple_buffer(3)

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

✨ enable_triple_buffer ✨

okay bestie, so this one lives in the Allegro manual (that's the (3) up in the corner, iykyk) and it's giving "let me make your graphics smoother, no cap". it's called enable_triple_buffer, and honestly? iconic name, does exactly what it says on the tin πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro.h>

int enable_triple_buffer();

πŸ’– DESCRIPTION πŸ’–

so here's the tea πŸ«– β€” if the GFX_CAN_TRIPLE_BUFFER bit of the gfx_capabilities field is not set, you can attempt to turn it on by calling this function. like, you're asking nicely and hoping for the best, bestie.

and specifically β€” this is the juicy part β€” if you're running in mode-X in a clean DOS environment, this routine will enable the timer retrace simulator, which is what activates the triple buffering functions. so like, the simulator wakes up and suddenly everything's smooth. slay. ✨


πŸŽ€ RETURN VALUE πŸŽ€

  • returns zero if triple buffering got enabled πŸ₯³
  • returns -1 otherwise 😭

🌈 SEE ALSO 🌈

go read these next, fr fr:


k that's the whole page, you ate it πŸ’… this was pulled straight from <b>Allegro version 4.4.3</b> β€” go forth and triple buffer responsibly, queen πŸ‘‘βœ¨

πŸ“¦ where this page comes from