OpenRobotLab / GRUtopia

GRUtopia: Dream General Robots in a City at Scale
https://grutopia.github.io
MIT License
499 stars 24 forks source link

Running lag #4

Closed fighting-j closed 3 months ago

fighting-j commented 3 months ago

Hello, when I run python ./GRUtopia/demo/h1_house.py according to the instructions, the environment loads very slowly, the following warning appears: 2024-07-23 07:50:21 [15,953ms] [Warning] [omni.kit.widget.settings.settings_model] a value for setting /rtx/ecoMode/enabled has been requested but is not available 2024-07-23 07:50:21 [15,953ms] [Warning] [omni.kit.widget.settings.settings_model] a value for setting /rtx/directLighting/enabled has been requested but is not available 2024-07-23 07:50:21 [15,954ms] [Warning] [omni.kit.widget.settings.settings_model] a value for setting /rtx/reflections/enabled has been requested but is not available 2024-07-23 07:50:21 [15,954ms] [Warning] [omni.kit.widget.settings.settings_model] a value for setting /rtx/translucency/enabled has been requested but is not available 2024-07-23 07:50:21 [15,954ms] [Warning] [omni.kit.widget.settings.settings_model] a value for setting /rtx/raytracing/subsurface/enabled has been requested but is not available 2024-07-23 07:50:21 [15,954ms] [Warning] [omni.kit.widget.settings.settings_model] a value for setting /rtx/caustics/enabled has been requested but is not available 2024-07-23 07:50:22 [16,540ms] [Error] [rtx.neuraylib.plugin] Cannot find Documents/Kit/shared directory. 2024-07-23 07:50:26 [20,614ms] [Warning] [omni.kit.hotkeys.core.registry] [Hotkey] duplicated action as SPACE (On Press) with omni.kit.widget.toolbar.omni.kit.widget.toolbar::toolbar::play! 2024-07-23 07:50:26 [20,615ms] [Warning] [omni.kit.hotkeys.core.registry] [Hotkey] Cannot register Global [omni.kit.widget.toolbar] omni.kit.widget.toolbar::toolbar::play.SPACE, error code: Duplicated action definition ... 2024-07-23 07:59:29 [283,180ms] [Warning] [omni.kit.notification_manager.manager] PhysX error: Supplied PxGeometry is not valid. Shape creation method returns NULL. 2024-07-23 07:59:29 [283,180ms] [Warning] [omni.kit.notification_manager.manager] PhysX error: Supplied PxGeometry is not valid. Shape creation method returns NULL. 2024-07-23 07:59:29 [283,180ms] [Warning] [omni.kit.notification_manager.manager] PhysX error: Supplied PxGeometry is not valid. Shape creation method returns NULL. 2024-07-23 07:59:29 [283,180ms] [Warning] [omni.kit.notification_manager.manager] PhysX error: Supplied PxGeometry is not valid. Shape creation method returns NULL. 2024-07-23 07:59:29 [283,180ms] [Warning] [omni.kit.notification_manager.manager] PhysX error: Supplied PxGeometry is not valid. Shape creation method returns NULL.

And the robot is very slow to operate after entering the environment.But my graphics card usage is not full. 2024-07-23 16-02-07屏幕截图 I want to know if there is any way to make the environment smoother.

HanqingWangAI commented 3 months ago

Thank you for your interest in our project. Could you let us know the FPS you get when running the demo? You can enable the FPS display by clicking the eye icon in the GUI. img_v3_02d2_bcc4a3d8-6cfc-4d4a-8524-ec7a820a7a6g

fighting-j commented 3 months ago

2024-07-23 20-33-39屏幕截图 This is the FPS I was running at,Only about 2.

HanqingWangAI commented 3 months ago

Hi @fighting-j, I ran this demo on an RTX 4090 device, achieving about 17 FPS. It appears there may be another Python process running on your GPU, which could be affecting performance. Please check for any such processes. img_v3_02d2_cb5e4dc9-1a6b-4933-8735-deba6a46faag Additionally, you can increase the FPS by adding rendering_interval: 1 under this line: https://github.com/OpenRobotLab/GRUtopia/blob/1078eb49b02f90260af1fe28518799f6f1bac1d5/demo/configs/h1_house.yaml#L3 img_v3_02d2_b6a9a1fa-433f-470d-aa7d-a18e761bdf5g

fighting-j commented 3 months ago

I added rendering_interval: 1 as you suggested, and made sure there were no other programs running, and the FPS improved a bit, but it's still not at your level. 2024-07-24 10-18-46屏幕截图 2024-07-24 09-59-36屏幕截图 Here are some warnings that appear when I run it. Will it have any impact? 2024-07-24 10-30-51屏幕截图 2024-07-24 10-32-19屏幕截图 Is there a problem with the isaac sim configuration?

HanqingWangAI commented 3 months ago

Hi @fighting-j, can you also check the memory usage and the CPU utils? I paste the process state here FYI. img_v3_02d3_7c18747e-62e2-4472-8ecc-ac696a0004eg One more thing you can do to improve FPS is to disable the cameras on the H1. img_v3_02d3_fb6f1c84-3f36-4b1e-8f49-2a2ffde2f60g e88b40c3-3837-4d31-82de-4a92613490fe

fighting-j commented 3 months ago

2024-07-24 12-21-59屏幕截图 2024-07-24 12-21-07屏幕截图 The above is the running situation after I removed the camera, and there is still a big gap between your results and mine.

HanqingWangAI commented 3 months ago

@fighting-j, it seems that a Java process is heavily utilizing your CPU, resulting in significantly lower CPU usage (300~ compared to 1000~) for the demo process. Can you terminate the java program and run the demo again?

fighting-j commented 3 months ago

Indeed, I found that there was a java process occupying the CPU. After I ended it, the frame rate is now normal. Thank you for your help.

HanqingWangAI commented 3 months ago

Thank you for your feedback. This issue will be closed as it is resolved.