diff --git a/components/renderers/cpp/src/CUDARender.cpp b/components/renderers/cpp/src/CUDARender.cpp index b2973f0a7a8e89ffb114a0f0d7c7518273b65a3f..c17fe0d523f8719007a017dc19933b72fd261d5d 100644 --- a/components/renderers/cpp/src/CUDARender.cpp +++ b/components/renderers/cpp/src/CUDARender.cpp @@ -572,6 +572,8 @@ void CUDARender::end() { _endSubmit(); } + LOG(INFO) << "SUBMITS COMPLETE"; + _end(); stage_ = Stage::Finished; } @@ -606,6 +608,8 @@ void CUDARender::_end() { /*ftl::cuda::flip(out_->getTexture<uchar4>(out_chan_), stream_);*/ /*ftl::cuda::flip(out_->getTexture<float>(_getDepthChannel()), stream_);*/ + LOG(INFO) << "ABOUT TO COPY COLLISIONS"; + cudaSafeCall(cudaMemcpyAsync(collisions_host_, collisions_, sizeof(ftl::cuda::Collision)*1024, cudaMemcpyDeviceToHost, stream_)); cudaSafeCall(cudaStreamSynchronize(stream_)); @@ -615,6 +619,8 @@ void CUDARender::_end() { collision_points_[i-1] = make_float4(collisions_host_[i].x(), collisions_host_[i].y(), collisions_host_[i].depth, collisions_host_[i].strength()); } + LOG(INFO) << "COLLISIONS DONE"; + // Do something with the collisions /*if (collisions_host_[0].screen > 0) { float x = 0.0f;