LIVECODING: ~50,000 April Tags in ~0 .1 secs with Compile Time Polymorphism via Explicit Templates

Опубликовано: 26 Апрель 2026
на канале: Scott Nykl
174
2

We load ~50,000 April Tags in a fraction of a second (by cheating). Instead of loading 50,000 individual April Tags, we load the texture mosaics and use OpenGL to render all the images via Texture Matrices that scale and translate to the requested ID number. I walk through a live coding example which converts runtime dispatch from compile time dispatch via explicit template instantiation. It also discusses some software engineering patterns to help refactor and clean up the shown code.

Images generated from
https://april.eecs.umich.edu/software...