pub const TERRAIN_CHUNK_BLOCKS_LG: u32 = 5;
Expand description

Base two logarithm of the number of blocks along either horizontal axis of a chunk.

NOTE: (1 << CHUNK_SIZE_LG) is guaranteed to fit in a u32.

NOTE: A lot of code assumes that the two dimensions are equal, so we make it explicit here.

NOTE: It is highly unlikely that a value greater than 5 will work, as many frontend optimizations rely on being able to pack chunk horizontal dimensions into 5 bits each.