Tweaking, fixed a very old off by one bug on voxel gen

This commit is contained in:
MitchellHansen
2017-10-21 06:54:09 -07:00
parent dcf355c636
commit 36bf5697fa
9 changed files with 54 additions and 47 deletions

View File

@@ -25,7 +25,7 @@ struct OctState {
class Octree {
public:
static const int buffer_size = 300000;
static const int buffer_size = 100000;
Octree();
~Octree() {};
@@ -42,13 +42,13 @@ public:
// know when to switch buffers
uint64_t *descriptor_buffer;
uint64_t descriptor_buffer_position = buffer_size;
uint64_t descriptor_buffer_position = buffer_size - 1;
uint32_t *attachment_lookup;
uint64_t attachment_lookup_position = buffer_size;
uint64_t attachment_lookup_position = buffer_size - 1;
uint64_t *attachment_buffer;
uint64_t attachment_buffer_position = buffer_size;
uint64_t attachment_buffer_position = buffer_size - 1;
unsigned int trunk_cutoff = 3;
uint64_t root_index = 0;