From 583b98bf74de14c0d53a22cf727365a0df7f05a8 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Thu, 13 Aug 2020 09:52:32 +0300
Subject: [PATCH] More debug output

---
 components/renderers/cpp/src/CUDARender.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/components/renderers/cpp/src/CUDARender.cpp b/components/renderers/cpp/src/CUDARender.cpp
index b2973f0a7..c17fe0d52 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;
-- 
GitLab