Changed chunk size from 32x32x32 to 16x16x16
This commit is contained in:
@@ -101,11 +101,11 @@ impl World {
|
||||
// Try generating chunk
|
||||
let timer0 = Instant::now();
|
||||
let mut chunk = WorldChunk::new();
|
||||
for x in 0..32 {
|
||||
for z in 0..32 {
|
||||
for x in 0..chunk::SIZE as i32 {
|
||||
for z in 0..chunk::SIZE as i32 {
|
||||
let bpos = Vector3::<i32>{x,y:0,z};
|
||||
let block = chunk.get_block_mut(&bpos);
|
||||
WorldGen::generate(&(pos*32 + bpos), block);
|
||||
WorldGen::generate(&(pos*chunk::SIZE as i32 + bpos), block);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user