Instead of having a single used blocks value in the chunk info have two used block and a split point:
struct { uint16 used_lower; uint16 split_point; uint16 used_upper; };
if used_lower == split_point then the lower half is full.
Log in to post a comment.