Synapse Open Synapse
Tech

How a voxel sandbox game works in 62k lines of x86-64 assembly – no compiler, no C runtime, no asset files

Reddit · r/programming · · 29 min read

author here, couple of things in the code i think are kinda neat: - lighting is a bfs over a 5x5 window of chunks, positions packed into one dword so a neighbour step is just an add - the mesher copies the 3x3 neighbour chunks into an 18 3 padded buffer so every neighbour lookup is one movzx at a…

Latest from Reddit · r/programming