Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronization of train motion between server and client #68

Open
Trilarion opened this issue Aug 23, 2018 · 0 comments
Open

Synchronization of train motion between server and client #68

Trilarion opened this issue Aug 23, 2018 · 0 comments
Labels
discussion General discussions programming Strongly related to programming

Comments

@Trilarion
Copy link
Owner

While reading the mailing list (#7) I realized that this is a part of Freerails I do not yet fully understand. The client gets a "train motion" directive (list of tiles, speed, acceleration, ..) and animates the train much faster than the world update rate which is fine. But how exactly do the server and the client agree on the actual position of a train?

My guess is that both must execute exactly the same point and the server must regularly send updates of the train position, so that the client can check and, if necessary, adapt to what the server says where the train is. Effectively, since the communication takes time, all the clients will lag a little bit behind the server.

One should inspect more how the current code achieves this.

@Trilarion Trilarion added discussion General discussions programming Strongly related to programming labels Aug 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion General discussions programming Strongly related to programming
Projects
None yet
Development

No branches or pull requests

1 participant