ALLEGRO_VERTEX_CACHE_SIZE(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ALLEGRO_VERTEX_CACHE_SIZE πŸ’–

okay bestie, so this one's from the Allegro 5 API β€” the Allegro reference manual, 3alleg5 girlies know ✨


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_primitives.h>

#define ALLEGRO_VERTEX_CACHE_SIZE 256

πŸŽ€ DESCRIPTION πŸŽ€

So ALLEGRO_VERTEX_CACHE_SIZE is literally the number that sets the size of the transformation vertex cache for the software renderer. πŸ’…

Here's the tea: if you pass less than this many vertices to the primitive rendering functions, you get a speed boost. slay. not more than, less than. the cache eats it up and you go zoom. 🏎️✨

It also defines the size of the cache vertex buffer, which is the one used for the high-level primitives. 🫢

And that buffer size corresponds to the maximum number of line segments that will be used to form them. so like, that's the ceiling, bestie. πŸ“


no cap: 256 is the default value this macro is defined to. that's the vibe. πŸ¦‹

🌈 SEE YOU LATER 🌈

that's the whole page, angel πŸ’œ β€” straight from the Allegro reference manual, version 3alleg5, no date on this one but the source is the Allegro docs themselves. go forth and cache those vertices, queen πŸ‘‘πŸ’–

πŸ“¦ where this page comes from