Skip to content

Viewer - No 3D image on playback - #9051

Merged
maloel merged 2 commits into
realsenseai:developmentfrom
Nir-Az:investigate_3d_playback_issue
May 20, 2021
Merged

maloel merged 2 commits into
realsenseai:developmentfrom
Nir-Az:investigate_3d_playback_issue

Conversation

@Nir-Az

@Nir-Az Nir-Az commented May 19, 2021

Copy link
Copy Markdown
Collaborator

point cloud image are ignored during playback / DQT 3D streaming
This fix allow pointcloud frames to be uploaded to the rendering window

Tracked on [RS5-11334]

Comment thread common/viewer.cpp Outdated
s.second.profile.stream_type() == RS2_STREAM_FISHEYE))
{
auto profile_unique_id = s.second.profile.unique_id();
bool profile_found = streams_origin.find(profile_unique_id) != streams_origin.end();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're doing the find here, why aren't we keeping the iterator so we don't have to find it again (line 450 and 455)?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do it, but lets decide widely for all the usage first.
I will change it accordingly

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally don't like it when searches happen twice. I think performance is quality. It can be done while keeping the code readable. Short code is not always readable.

Comment thread common/viewer.cpp Resolved

@maloel maloel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only issue is that we do all the searches twice...

@Nir-Az

Nir-Az commented May 20, 2021

Copy link
Copy Markdown
Collaborator Author

My only issue is that we do all the searches twice...

We need to decide performance over shrinked code, it's used this way all over the viewer.

  1. The map size is small.
  2. sometimes we first check the streams map and than then stream_origin map with an "OR"
    if we first save the iterator it means we will search both even when it's likely that the first search will get it.

What do you think?

@maloel

maloel commented May 20, 2021

Copy link
Copy Markdown
Contributor

There's still an extra search in there... but OK :)

@maloel
maloel merged commit 29247b7 into realsenseai:development May 20, 2021
@Nir-Az
Nir-Az deleted the investigate_3d_playback_issue branch July 27, 2021 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants