-
Notifications
You must be signed in to change notification settings - Fork 26
1. Setup
Georg Friedrich Schuppe edited this page Feb 14, 2022
·
3 revisions
First, add GGRS to your dependencies:
[dependencies]
ggrs = "0.9"
GGRS assumes that you have addresses and ports of every client you want to synchronize with. It does not handle NAT traversal nor does does it provide a signalling server. Check out 👉this article or 👉this article for more information on the topic.
In addition to the ability to save and load your game state, GGRS assumes that you are advancing your state in a deterministic manner. This has several implications, but the main point: Applying the same inputs to the same state needs to result in the same new state every time. This has to be true across all processor architectures you want to support, which is why especially floating point computations are handled with care.