Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
975ec61a
Commit
975ec61a
authored
5 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Remove unwanted stream syncs in render
parent
e1829b2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#19363
passed
5 years ago
Stage: all
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/renderers/cpp/src/tri_render.cpp
+5
-5
5 additions, 5 deletions
components/renderers/cpp/src/tri_render.cpp
with
5 additions
and
5 deletions
components/renderers/cpp/src/tri_render.cpp
+
5
−
5
View file @
975ec61a
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment