Turn off physics servers in the Project Manager.

Copying the editor behaviour of deactivating these servers we're not
using, to reduce CPU load.

(cherry picked from commit 27a6ab457b)
This commit is contained in:
Ibrahn Sahir 2021-10-30 15:15:00 +01:00 committed by Rémi Verschelde
parent 2da3f80128
commit 9a181edd87
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 4 additions and 0 deletions

View File

@ -2374,6 +2374,10 @@ ProjectManager::ProjectManager() {
EditorSettings::create();
}
// Turn off some servers we aren't going to be using in the Project Manager.
PhysicsServer::get_singleton()->set_active(false);
Physics2DServer::get_singleton()->set_active(false);
EditorSettings::get_singleton()->set_optimize_save(false); //just write settings as they came
{