2 ms·
I've thought about doing something like this before, but my understanding was that GPUs are especially efficient at rendering from textures, while being relativ
by Retr0id 2y ago
I've thought about doing something like this before, but my understanding was that GPUs are especially efficient at rendering from textures, while being relatively slow at bit twiddling. So although you're saving a little bit of memory here, is it actually faster than having an atlas?
Maybe you could get the best of both worlds by bitpacking into a regular texture, with a fragment shader doing the decoding.
- BBOC 2y ago> understanding was that GPUs are especially efficient at rendering from textures, while being relatively slow at bit twiddling. That understanding is very out of date. For GPU's made in the last 15 or so years a texture lookup is roughly 100 times as slow as a bitwise operation.