If you dont know what azure latch is, its basically just a soccer game. I like to play it with my friends, and I want to try making a simple soccer game for practice, but the only way i can think of doing server-client communication is remote events, which has a delay from ping.
in azure latch, the strongest battlegrounds, and a few other games, the actions you do seem to be performed instantly, regardless of whether you have 50 ping or 150 ping. What exactly do these games do to achieve this?
That’s because they do something called “clientside prediction”.
You essentially simulate how it would look if they did an action, without asking the server for confirmation first. Once the server receives the input it will simulate it on the server and send the validated simulation to the client. Once the client reviews the validated states, it compares it with the state it originally predicted. If it’s close enough, nothing happens. Otherwise, it will try to correct the client state to the validated state.