3 ms·
Morton codes are pretty fun, I remember playing with them a few years ago when toying around with tricks for optimizing voxel rendering. I wrote a routine that
by dotnet00 3y ago
Morton codes are pretty fun, I remember playing with them a few years ago when toying around with tricks for optimizing voxel rendering.
I wrote a routine that was the fastest I could manage to encode/decode them, I wonder how it compares nowadays to this implementation. This was back when Ryzen CPUs still implemented PDEP in microcode, so lookup table and bit twiddling was much faster than PDEP.