Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scene graph demo improvements #693

Merged
merged 5 commits into from
Feb 25, 2025
Merged

Scene graph demo improvements #693

merged 5 commits into from
Feb 25, 2025

Conversation

ds58
Copy link
Contributor

@ds58 ds58 commented Feb 21, 2025

  • Fixes a somewhat common crashing bug related to the ZED SVO recorder panel
  • Adds a utility for ensuring you have a GPU of some minimum spec (In the RDXSceneGraphDemo, this was problematic because ZED Neural mode takes so much GPU it is super laggy on lower end spec or laptops). This utility could also be useful other places.

@ds58 ds58 requested review from calvertdw and TomaszTB February 21, 2025 20:44
@@ -63,6 +65,61 @@ public static boolean hasCUDADevice()
return getCUDADeviceCount() > 0;
}

public static String getFirstDeviceName()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why "first" device name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. I changed it to getDeviceName(int device)

@@ -155,6 +157,11 @@ protected boolean startSensor()
return true;
}

public void disableNeuralMode(boolean disableNeuralMode)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the depth mode should be a constructor parameter? That way we can pass in whatever depth mode we want. It would allow us to use different modes on a case-by-case basis

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good idea. Much better.

@ds58 ds58 merged commit b4e31da into develop Feb 25, 2025
62 of 68 checks passed
@ds58 ds58 deleted the scene-graph-demo-improvements branch February 25, 2025 15:33
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.

3 participants