Skip to content

Conversation

@Nir-Az
Copy link
Collaborator

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

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]

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
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
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
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.

Copy link
Contributor

@maloel maloel left a comment

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
Copy link
Collaborator Author

Nir-Az commented May 20, 2021

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
Copy link
Contributor

maloel commented May 20, 2021

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