Skip to content
Snippets Groups Projects
Commit 47fe9d4a authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Clear completely between frames

parent ccc63b61
No related branches found
No related tags found
No related merge requests found
......@@ -624,7 +624,7 @@ __global__ void starveVoxelsKernel(HashData hashData) {
//is typically exectued only every n'th frame
int weight = hashData.d_SDFBlocks[entry.ptr + threadIdx.x].weight;
weight = max(0, weight-1);
hashData.d_SDFBlocks[entry.ptr + threadIdx.x].weight = weight; //CHECK Remove to totally clear previous frame (Nick)
hashData.d_SDFBlocks[entry.ptr + threadIdx.x].weight = 0; //CHECK Remove to totally clear previous frame (Nick)
}
extern "C" void starveVoxelsKernelCUDA(HashData& hashData, const HashParams& hashParams)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment