The Background Mechanism of Online Games
Two complex elements are there in a MMO type Game:
- Game architecture/Client-side
- Backend design/Server-side
You must be asking yourself, what is the need for me to understand about client-side design?
This thinking is fine if you are designing an internet application! But this assumption won’t help you when you are a video game backend developer.
Creating a complicated Game system is itself a large topic; I am not most likely to touch anyone of that!!
There are three different types of video games:
- Strategic video games
- Slow-moving turn games
- Very first-person games
Creating the first two is a whole lot easy, as they are not real-time; everyone has time/turn to play as well as data can be conveniently synced.
But games like PUBG/CS/Call of a task or NFS/Asphalt, these video games require various other player’s information as quickly as feasible. Yet, can we sync info in real-time? Not actually!
Claim as an example you’re in San Francisco, attached to a server in the NY. That’s around 4,000 kilometers or 2,500 miles.
But in the genuine word, the packages will not take the straight/shortest path; they must pass through the repeaters/routers, so ultimately, the latency will come near 50ms based upon the data transfer.
So, if I push the area bar, it will utilize 50ms for reaching the server + web server takes ~ Processing will take 100ms + take 50ms for a trip back to another individual that is the second player.
That’s a total of 200ms to send the info from player 1 to gamer 2.
To ensure that means if the red gamer shoots a black ball, the gamer sees all these in around 200ms later, so will the video games function after that much of latency?
Know that you understand just how difficult to send details in between two gamers, which are playing in genuine time currently consider the best free MMORPGs, with 100s of individuals playing concurrently? Such as in PUBG at any offered factor of time 100s of people are gone down to the island ceremony, so these 100 people from various locations need to play together with no problem.