Hi
Im trying to make my first online multiplyer prototype. I have managed to setup Unity netcode and see my player move on both server and client. However it lags really much (see gif video). there is almost a second delay between server and client and vice versa.
On top of that there is some heavy interperlation happening making the player ease in to a full stop instead of just slamming into the wall full speed ( as intended).
I hope that it is just because I need to increase som value somehere in netcode that Im not aware of, so I hope someone can help me make it less laggy
I use:
-
Unity2021.3
-
Unity netcode for gameobjects 1.0.2
-
Unity Multiplayer tools 1.0
And for syncing players transform Im unsing the unity script: Client Network Transform (See picture)
-Parellel sync for testing multiplayer
What I have tired;
-
Increase the tick rate in naetwork manager to 60 - did not do anything
-
Make a build to see if lag was for parrel sync - same lag
-
Change the position threashhold on the player Client network transform script