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

Remove unwanted stream syncs in render

parent e1829b2d
No related branches found
No related tags found
No related merge requests found
Pipeline #19363 passed
...@@ -653,12 +653,12 @@ void Triangular::_render(ftl::rgbd::FrameSet &in, ftl::rgbd::Frame &out, Channel ...@@ -653,12 +653,12 @@ void Triangular::_render(ftl::rgbd::FrameSet &in, ftl::rgbd::Frame &out, Channel
camera, pose, stream_); camera, pose, stream_);
} }
cudaSafeCall(cudaStreamSynchronize(stream_)); //cudaSafeCall(cudaStreamSynchronize(stream_));
// Render source specific debug info into colour channels // Render source specific debug info into colour channels
_preprocessColours(); _preprocessColours();
cudaSafeCall(cudaStreamSynchronize(stream_)); //cudaSafeCall(cudaStreamSynchronize(stream_));
if (mesh_) { if (mesh_) {
// Render depth channel using triangles // Render depth channel using triangles
...@@ -668,18 +668,18 @@ void Triangular::_render(ftl::rgbd::FrameSet &in, ftl::rgbd::Frame &out, Channel ...@@ -668,18 +668,18 @@ void Triangular::_render(ftl::rgbd::FrameSet &in, ftl::rgbd::Frame &out, Channel
_dibr(out, t, stream_); _dibr(out, t, stream_);
} }
cudaSafeCall(cudaStreamSynchronize(stream_)); //cudaSafeCall(cudaStreamSynchronize(stream_));
// Reprojection of colours onto surface // Reprojection of colours onto surface
auto main_channel = (scene_->frames[0].hasChannel(Channel::ColourHighRes)) ? Channel::ColourHighRes : Channel::Colour; auto main_channel = (scene_->frames[0].hasChannel(Channel::ColourHighRes)) ? Channel::ColourHighRes : Channel::Colour;
_renderChannel(out, main_channel, Channel::Colour, t, stream_); _renderChannel(out, main_channel, Channel::Colour, t, stream_);
cudaSafeCall(cudaStreamSynchronize(stream_)); //cudaSafeCall(cudaStreamSynchronize(stream_));
// Debug colour info relating to the rendering process // Debug colour info relating to the rendering process
_postprocessColours(out); _postprocessColours(out);
cudaSafeCall(cudaStreamSynchronize(stream_)); //cudaSafeCall(cudaStreamSynchronize(stream_));
// Support rendering of a second channel without redoing all the work // Support rendering of a second channel without redoing all the work
switch(chan) { switch(chan) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment