Difference between revisions of "User:Assemb-LR/The Client-Server Problem"

From Minetest Developer Wiki
Jump to navigation Jump to search
(Created page with "== From Client to Server and back == If you ever played this game online on a server far away from you, you will have noticed that your device needs some time to get any kind...")
 
m (PilzAdam moved page The Client-Server Problem to User:Assemb-LR/The Client-Server Problem without leaving a redirect)
 
(No difference)

Latest revision as of 19:46, 12 September 2014

From Client to Server and back

If you ever played this game online on a server far away from you, you will have noticed that your device needs some time to get any kind of information to the server, for example if you placed or dug a block. This takes usually some miliseconds, a realistic value might be roundabout 30 ms for any direction (client -> server or server -> client). And as this game is open source you might have come across the idea of speeding up the digging by messing around with the sources, haven´t you? But that´s not fair, so there´s an easy solution:

The Server is always right

This is an easy but not always satisfying rule: your client tells the server what keys you pressed. The server calculates your avatar´s positions as he processes the incoming messages and so knows which blocks you could have removed. There are server-side procedures watching your fingers!

Sanity checks

//TODO: add information about how MT checks node digging and placing