Fix uninitialized stats

master
Marc Gilleron 2019-08-15 01:54:05 +01:00
parent 07d4deeaab
commit c6e0e59662
2 changed files with 6 additions and 1 deletions

View File

@ -64,6 +64,12 @@ public:
uint32_t remaining_blocks[MAX_JOBS];
uint32_t thread_count = 0;
uint32_t dropped_count = 0;
Stats() {
for (int i = 0; i < MAX_JOBS; ++i) {
remaining_blocks[i] = 0;
}
}
};
struct Output {

View File

@ -42,7 +42,6 @@ VoxelDataLoader::VoxelDataLoader(int thread_count, Ref<VoxelStream> stream, int
processors[0].stream = stream;
}
// TODO Re-enable duplicate rejection, was turned off to investigate some bugs
_mgr = memnew(Mgr(thread_count, 500, processors, true));
}