Skip to content

Commit

Permalink
Test fix slow performance for joining a space (#56)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RevoluPowered authored Mar 26, 2024
1 parent 5e73096 commit 664c6e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mirror-godot-app/scripts/autoload/zone/client.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 664c6e6

Please sign in to comment.