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

rviz2 running with low fps (5fps) #1308

Open
abdala-diasse opened this issue Dec 5, 2024 · 5 comments
Open

rviz2 running with low fps (5fps) #1308

abdala-diasse opened this issue Dec 5, 2024 · 5 comments
Labels
more-information-needed Further information is required

Comments

@abdala-diasse
Copy link

I am currently running rviz2 with ros2 humble but my rviz is running very slowly compared to ros1 . With the same rviz config files rviz1 can run at 30fps but rviz2 can only run at 5pfs .

Can anyone help me with this issue

@Yadunund
Copy link
Member

Yadunund commented Dec 9, 2024

Please provide more information about your setup including

  • OS version
  • Whether you are using binaries or you've built ROS 2 Humble from source
  • Link to a minimal repo with configs/instructions that allows us to reproduce the behavior

@sloretz sloretz added the more-information-needed Further information is required label Dec 20, 2024
@abdala-diasse
Copy link
Author

abdala-diasse commented Jan 7, 2025

I am running RViz2 on Jetson AGX 32 GB with JP 6.0
I have tried with both binaries and from source but we still have the same issue

@abdala-diasse
Copy link
Author

any feedback here

@RENyunfan
Copy link

Hi @Yadunund @sloretz , I have met the similar problem and some tests are presented below

rviz & rviz2 FPS Test

1. Testing Environment

  • Operating System: Ubuntu 20.04
  • CPU: 11th Gen Intel® Core™ i9-11900K @ 3.50GHz × 16
  • GPU: NVIDIA GeForce RTX 3060/PCIe/SSE2 (NVIDIA Corporation)
  • Memory: 62.6 GiB
  • OpenGL: Version 3.6
  • ROS 1: Noetic
  • Rviz 1: Version 1.14.25
  • ROS 2: Foxy
  • Rviz 2: Latest version from [this GitHub repository](https://github.com/ros2/rviz/tree/foxy)

2. Problem Description

When I attempt to publish a point cloud in both Rviz1 and Rviz2, I observe significant differences in their performance:

  • Rviz 1: Very smooth with an FPS of up to 500 Hz (when adjusting the frame rate).
  • Rviz 2: Becomes completely unresponsive when I try to change the view by dragging the mouse.

I have verified that both Rviz1 and Rviz2 are using the GPU, as shown in the following logs:

  1. Rviz 1 Output:

    [ INFO] [1737213454.623461674]: rviz version 1.14.25
    [ INFO] [1737213454.623501868]: compiled against Qt version 5.12.8
    [ INFO] [1737213454.623509635]: compiled against OGRE version 1.9.0 (Ghadamon)
    [ INFO] [1737213454.627971466]: Forcing OpenGl version 0.
    [ INFO] [1737213455.265363469]: Stereo is NOT SUPPORTED
    [ INFO] [1737213455.265403534]: OpenGL device: NVIDIA GeForce RTX 3060/PCIe/SSE2
    [ INFO] [1737213455.265414117]: OpenGl version: 4.6 (GLSL 4.6).
  2. Rviz 2 Output: (The OpenGL Renderer device is obtained by slightly modify the source code)

    [INFO] [1737213896.198886037] [rviz2]: Stereo is NOT SUPPORTED
    [INFO] [1737213896.198984848] [rviz2]: OpenGL Vendor: NVIDIA Corporation
    OpenGL Renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
    OpenGL Version: 4.6.0 NVIDIA 470.256.02
    [INFO] [1737213896.198994700] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
    [INFO] [1737213896.275618870] [rviz2]: Stereo is NOT SUPPORTED
    

3. Reproduce the Issue

I have provided the necessary code and dataset to reproduce the issue on this Notion page. The resources include:

  • Two Python scripts: one for ROS1 and one for ROS2
  • A PCD file to serve as the dataset

I hope this helps in replicating the problem, and I look forward to your assistance.

@Yadunund
Copy link
Member

I am running RViz2 on Jetson AGX 32 GB with JP 6.0
I have tried with both binaries and from source but we still have the same issue

@abdala-diasse Jetson AGX/JP6 is not a Tier-1 supported platform. See. It is hard to isolate the cause of the problem (it could be a bug in RViZ, or display manager in JP, or..etc). It would be great if you could reproduce the issue on a Tier-1 platform (eg. Ubuntu) with the latest Rolling. Please share a minimal script to run that leads to the issue.

@RENyunfan thanks for the additional details.

ROS 2: Foxy

Foxy has long been end-of-life. Could you try your example with the latest Rolling or Jazzy?

Rviz 2: Latest version from [this GitHub repository](https://github.com/ros2/rviz/tree/foxy)

Please specify how you installed ROS 2. Whether from source or installed via binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-information-needed Further information is required
Projects
None yet
Development

No branches or pull requests

4 participants