-
here's the wild thing: 128*128 is pico8's resolution, and an integer is 4 bytes. 128*128*4=65536 bytes, which is the *exact* maximum size of a uniform block on my nvidia card. down to the byte. whew.
-
really, 4 bytes is way too big for an index, but i dont know how to pass an integer type smaller than that. 8 or even 4 bits is plenty for what i intend to do. any ideas on how to pass arrays of smaller integer types as uniform blocks to opengl?
-
basic idea is: there's a buffer of 128*128 integers that acts as the framebuffer. there's an array on the CPU side that you write into to draw. that array then gets sent to the GPU with a palette and each pixel looks up its index in the framebuffer and its color from the palette






