Chailotl / osuve

Open-Source Unity Voxel Engine
GNU General Public License v3.0
46 stars 9 forks source link

Better chunk management #1

Closed Chailotl closed 6 years ago

Chailotl commented 6 years ago

Chunks are currently loaded in a 3D loop fashion from one corner to the other.

This is inefficient as focused should be put around the player and their point-of-view of the world.

Chailotl commented 6 years ago

Perhaps use of a priority queue weighted from an expanding view cone may help?

e.g. Create vectors from the player’s position to each chunk, and compare that by angle of difference with the player’s view vector minus the y component; perhaps further augment it by distance from player?

Chailotl commented 6 years ago

Huzzah