-
Notifications
You must be signed in to change notification settings - Fork 26
ijustneedamail's desync speeculations #181
Copy link
Copy link
Open
Description
problem
Cars in KissMP sometimes end up in different places on each computer.
findings probably maybe right
Car sync works like this on the client:
1. positional values(translative and rotative) of a vehicle are recieved
2. force to nodes is calculated and applied using the ping to the server (I forgot when the predict is called, I'll take a look)
meanwhile:
3. positional data is sent to the server
on the server side:
1. positional data is distributed every tick
2. other vehicle data every 5 seconds
experiments
implemented proper prediction of rotational force, the effect is negligable
speculation
- Could this cause issues with trailers which have no gearbox/electrics:
KISS-multiplayer/kissmp-server/src/lib.rs
Line 544 in e18a4a9
| async fn tick(&mut self) { |
- ping of other players not used (unless I missed something)
I only saw some average of the ping to the server beeing used for the prediction
additionally
explanation of the code helpful
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels