mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Turn off physics and 3d navigation servers in the Project Manager.
Copying the editor behaviour of deactivating these servers we're not using, to reduce CPU load.
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "scene/gui/texture_rect.h"
|
||||
#include "scene/main/window.h"
|
||||
#include "servers/display_server.h"
|
||||
#include "servers/navigation_server_3d.h"
|
||||
|
||||
static inline String get_project_key_from_path(const String &dir) {
|
||||
return dir.replace("/", "::");
|
||||
@@ -2387,6 +2388,11 @@ ProjectManager::ProjectManager() {
|
||||
EditorSettings::create();
|
||||
}
|
||||
|
||||
// Turn off some servers we aren't going to be using in the Project Manager.
|
||||
NavigationServer3D::get_singleton()->set_active(false);
|
||||
PhysicsServer3D::get_singleton()->set_active(false);
|
||||
PhysicsServer2D::get_singleton()->set_active(false);
|
||||
|
||||
EditorSettings::get_singleton()->set_optimize_save(false); //just write settings as they came
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user