Cleanup; prepared for buildings

This commit is contained in:
Segey Lapin
2021-10-16 03:08:07 +03:00
parent f4c39becea
commit 45a67ac8bd
5 changed files with 87 additions and 11 deletions

View File

@@ -18,7 +18,6 @@ VoxelGenerator::Result WorldGenerator::generate_block(VoxelBlockRequest &input)
Result result;
real_t time_before = OS::get_singleton()->get_ticks_usec(), total;
VoxelBufferInternal &out_buffer = input.voxel_buffer;
result = WorldGenerator::generate(
out_buffer,
@@ -26,8 +25,6 @@ VoxelGenerator::Result WorldGenerator::generate_block(VoxelBlockRequest &input)
input.origin_in_voxels, input.lod);
out_buffer.compress_uniform_channels();
total = OS::get_singleton()->get_ticks_usec() - time_before;
printf("generate_block: %f\n", total);
return result;
}