ValksGodotTools / Multiplayer-2023-Old

Client + server template
MIT License
8 stars 2 forks source link

How to sync client simulation with server simulation #23

Closed valkyrienyanko closed 1 year ago

valkyrienyanko commented 1 year ago

Untitled

valkyrienyanko commented 1 year ago

The only way is to have the server simulate everything on the Godot thread.

So it will look like the following now.

Client sends data -> server reads data -> server sends data to simulation thread -> data from sim thread gets sent back to server thread -> server tells other client(s) about such data