The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+2 votes

My purpose is running Godot as an environment for machine learning. Since this is required training on thousands of games, I need to run the game without rendering.
I realized that there is a version called 'Server' but I want to run it on Windows.
So, is there a way to disable graphics and audio manually?

in Engine by (67 points)

If the problem is having multiple windows, why can't you just make your game in a way it can run multiple instances of the "world" within the same application? (this would obviously imply you don't use singletons, which is one reason people think they are evil :p)

To be honest, I didn't understand what you meant :D. I just want to stop rendering but physics calculations and other things go on. So that calculations per frame increase from 60 to thousands. Is it possible?

If running 1000 processes of your game on a Windows machine is what you want, and without a window, see

I'm not sure what Godot is even used for in this scenario though, apart from a few scripts and physics (which is actually just Bullet).

2 Answers

+1 vote
VisualServer.viewport_set_active(get_tree().get_root().get_viewport_rid(), false)
by (16 points)
0 votes

With Godot 3.2+, you can simple set

VisualServer.render_loop_enabled = false

to disable rendering.

See: VisualServer doc

by (20 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.