I am developing a ball game and am having issues syncing the client to the server, the issue is that for the client the ball, for it to look smooth, I am creating a simulated ball for each client, the issue is that when the ball has made impact, that client ball needs to be removed so that they can see where the actual server ball is, the issue is when I try to sync the two, theres a large delaty thats very visible, and it often stutters.
I have three videos where I’ve tried different methods. The first method was that the client owns the ball, with network ownership, server checks to make sure the calulations are correct, and it plays.
This works well for the client who threw the ball, but all other clients see it as laggy or teleporting. You can see this in the Gameplay with multiple players and inside the practice video with dummies. The ball works perfectly for the client who threw the ball, but it is absolutely terrible for others. As you see in the video with other players, when a ball is thrown at me, it is stuttering or seems to just teleport.
The second method is all clients make their own ball, the issue I am having with this is trying to sync it, as when the ball ends, as you can see in the video where I am by myself in the non dummy practice area, after the ball finishes and switches to the server by deleting its ball and making the server visible, theres a giant stutter or it teleports trying to sync with the server, its very notciable and looks terrible.
What I have tried:
I have added a damper to try to counter it by slowing down the ball or speeding it up to match the server position, but it is still not great.
I have tried to tween the balls location via the client ot match then make the server ball visible while deleting the local ball, same issue arrivies with it looks like it teleports
This is a big issue and I am stuck at this part because without being able to get a good synchronization, it will be really difficult to dodge balls that are coming for you and will seemly give players unexpected deaths while also looking really bad, can anyone that has done this before assist or guide me on what they did to solve this? I have read other dev post and none of them seem to have this specific issue I am having.
External Media External Media External MediaThank you.