-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
How to disable rendering in CARLA server? #286
Comments
Hi @GokulNC, First of all Currently is no possible to disable the render and I have the feeling that it will doesn't matter anyways, because regardless you see the render or not, it must be done anyway. |
Thanks @marcgpuig . Eventhough the computations need to occur, I feel rendering it at a certain FPS (say 15) is quite resource-intensive. Though there is no way to disable rendering as of now, can this issue be considered as a feature-request? I will close this issue if this feature is implemented, or if there's an strong assertion that disabling rendering doesn't matter much. Regards :) |
Please try adding these commands:
So it will run on a Another solution is work without an actual screen, see our documentation. For sure I'm going to add the feature-request tag because it is something that can improve the performance. Since it's more an Unreal Engine issue, I'm adding the Good issue for first-time contributors too, so the community can make a good-and-easy contribution 😄 Regards! |
Is it also possible to disable the HUD in the Editor? |
Ok it is possible in the console with showHUD 0 |
You can also set
using the unreal console |
Is this topic solved? |
@marcpuig I think we should add a command for this, to disable the rendering in the viewport like this ULocalPlayer* player = GEngine->GetGamePlayer(GetWorld(), 0);
player->ViewportClient->bDisableWorldRendering = true; |
@juaxix |
@juaxix Yeah, that might help IDK :) But as an end user like me, it would be better if there's a command-line flag or an option in Thanks :) |
Ok, the feature has been implemented in the branch issue-286, you can wait for it to be merged into main and it will be added in CARLA 0.8.3. In CarlaSettings.ini, the new flag is inside the [Server] section, and it's called: DisableRendering, by default is false, Ah, it will hide the hud too if set to true. And the new command for the executable is called "-disable-rendering". Cheers. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have added the "-disable-rendering" to arguments when I running the Carla.sh script, but it didn't worked. However changing the "DisableRendering" to true in the Carla.ini file worked. |
None of them are working now. :/ |
Hi have you solved this? I would like to know how.. thanks |
Hi, @aayushARM , have you solved this problem and how to run the code without rendering? |
Hi all. I am using Carla 0.9.6 now, and the following are working without any problem: ./CarlaUE4.sh --no-rendering And in order to check, you can run no_rendering_mode.py inside PythonAPI/examples folder |
In linux, just write this command... |
Hello, I am trying to disable rendering in carla, version 0.9.9.4 on windows 10. I have already tried with the config script: ./config.py --no-rendering After that carla window turns to black, but the gpu usage still very high and if I start ./no_rendering_mode.py Carla windows start to display the rendered view again. Does anyone have similar issues? Or solutions? Should it work on windows? Thanks in adavance. |
I see the same problem in version 0.9.12. There isn't a CarlaSettings.ini file anywhere and the |
Hi, I wrote a blog post about this issue on the CarlaSimBlog, including a code tutorial for off screen rendering. |
So when the CARLA server is run by using the script
CarlaUE4.sh
to launch it, is there any way to disable the rendering of the game window?I use a camera in the simulator to get the current FoV from that camera. So just reading the image by
CarlaClient.read_data()
is enough for me to process things. I feel that I can increase my FPS by reducing the processing overhead to render the game using Unreal Engine.I tried using the flag
-carla-no-hud
as suggested in the docs, but still the rendering is taking place.So is there anyway to do this? Or it's not just possible or it doesn't matter not to render?
Thanks :)
The text was updated successfully, but these errors were encountered: