here is one example, that tells me if im at a border of a "sector"
Code: Select all
If Not (bx = 0 Or bx = blocksz-1 Or by = 0 Or by = blockszy-1 Or bz = 0 Or bz = blocksz-1) Then GoTo nxt
this line is from my biggest bottleneck, and is part an iteration of every block in a sector to check for visibility
the line isnt executed unless theres a gain, its encapsulated by a byte hardsolid, which is enabled if the sector has solid block-edges all around