veloren / veloren

An open world, open source voxel RPG inspired by Dwarf Fortress and Cube World. This repository is a mirror. Please submit all PRs and issues on our GitLab page.

Home Page:https://www.veloren.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make the choice of chunk size not hard-coded

zesterer opened this issue · comments

Currently, we use 16 as the chunk size. This is hard-coded in several places (you can search through the changes on 70408ca to find them all). It should be controlled by a single static constant instead.

I will take this.

@Treenix Thanks! Also worth noting that the last few commits added instances of this number hard-coded as well. It's probably best to place the static constant in client/src/lib.rs for now since chunks are currently only client-side.