From 80a8d03c0258eea4bd7114d628a1545e9ffda5f1 Mon Sep 17 00:00:00 2001 From: Gordon MacPherson Date: Tue, 26 Mar 2024 15:51:32 +0000 Subject: [PATCH] Test fix slow performance for joining a space We were seeing really bad performance joining spaces with this enabled, the debug server was sending too much traffic to the godot editor and we believe this is because of netsync error spam. --- mirror-godot-app/scripts/autoload/zone/client.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mirror-godot-app/scripts/autoload/zone/client.gd b/mirror-godot-app/scripts/autoload/zone/client.gd index 85a6adb7..c0948b93 100644 --- a/mirror-godot-app/scripts/autoload/zone/client.gd +++ b/mirror-godot-app/scripts/autoload/zone/client.gd @@ -544,7 +544,9 @@ func _join_new_server_locally(space_id: String) -> bool: OS.kill(pid) var firebase_auth = str(Firebase.Auth.auth.refreshtoken) print(firebase_auth) - var arguments = ["--server", "--space", space_id, "--mode", "edit", "--uuid", "localhost", "--server_login", firebase_auth, "--headless", "--remote-debug", "tcp://127.0.0.1:6008"] + # For debugging this allows you to grab breakpoints from the server "--remote-debug", "tcp://127.0.0.1:6008"] + # If enabled it could cause join time to be much longer when booting server + var arguments = ["--server", "--space", space_id, "--mode", "edit", "--uuid", "localhost", "--server_login", firebase_auth, "--headless"] print("SERVER ARGS: ", arguments) pid = OS.create_process(OS.get_executable_path(), arguments, true) start_join_localhost()