rameshvarun / netplayjs

Make P2P multiplayer browser games, no server hosting or synchronization code required. Powered by rollback netcode + WebRTC.
https://rameshvarun.github.io/netplayjs/
ISC License
496 stars 34 forks source link

How deterministic is this game? #43

Closed ValorZard closed 3 years ago

ValorZard commented 3 years ago

Does this use Fixed Point numbers or soft floats to prevent desyncs?

rameshvarun commented 3 years ago

Ultimately that's up to you. Here's what NetplayJS assumes:

The next step is to ask what Javascript operations are deterministic and what operations are non-deterministic. Unfortunately it's a difficult question to answer, and I haven't seen a definitive exploration of this topic.