New to Games Posted November 22, 2019 Share Posted November 22, 2019 I am new to server side programming , i want to know how the client connects to the nearest server(one at us, other at europe, and some more) for low latency.Do client has to send a ping to each server to check the latency or is there any other mechanism. Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted November 28, 2019 Share Posted November 28, 2019 (edited) We cannot avoid network latency but we can use methods to decrease it. This article are the best: http://buildnewgames.com/real-time-multiplayer/ I deployed the example from the article on Heroku (it is a free hosting), check out it in two tabs of browser: https://battle-world.herokuapp.com/?debug These methods work very good. Edited November 28, 2019 by 8Observer8 Quote Link to comment Share on other sites More sharing options...
Danidre Posted January 2, 2020 Share Posted January 2, 2020 Yes, the best way is to ping servers to check for lowest ping. Or use the user's location to get an accurate geographical representation of where they may be (North America, Japan etc) and try to do ping tests with servers there first. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.