bfops / playform

Voxel sandbox project in Rust
http://playformdev.blogspot.ca/
MIT License
212 stars 24 forks source link

Chunks aren't decreasing LOD properly #175

Closed bfops closed 8 years ago

bfops commented 8 years ago

Moving away from an area doesn't seem to decrease its LOD consistently.

bfops commented 8 years ago

I think this is because voxel updates don't trigger chunk updates if there's no change. The block updates should trigger even if there's no change, if they're not the currently loaded LOD.

Another option is that before we request voxels for a chunk, we check if we have all of its voxels already, in which case we'd drop the request, and just load the chunk immediately.

bfops commented 8 years ago

19cf6accd06f00189b4a8d201add095cdef36c53 and 115cb5dd312f6011a73c236dd94c922e8f18bfc7