Author |
Message |
Goldeye Novice
Gender: Joined: Dec 15 2003 Posts: 57 Offline
|
Posted: Tue Feb 12, 2008 7:34 pm Post subject: Client/server clock sync details. |
 |
|
|
|
I'm trying to figure out how server and client clocks interact.
This link is a great help.
http://forums.powerballzone.com/read.php?board=5&id=42371
Also, Latency:SendRoutePercent would seem to control the % mentioned in that link. (Note, the setting and the % in the post are c2s and s2c respectively, so each is 100%-the other)
The questions:
1. Does anyone know if SendRoutePercent actually gets used by the client? ASSS just sends it and doesn't process it at all.
2. What packet does the client use to synchronize clocks? (IE what packet contains the server's time and is sent as an immediate response to a client packet)? |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sun Mar 02, 2008 12:48 pm Post subject: |
 |
|
|
|
Time sync is handled in the core 0x05 and 0x06 packets. You can also look at src/packets/timesync.h in asss.
Looking at default settings it seems SendRoutePercent is set to 50%. I think the 60%/3-fifths weighting could have been taken from reversing vie's client, which could mean this setting was added post-vie (I didn't check against the server.cfg on the CD so I could be wrong).
I assume cont uses it, but never looked into it. _________________ ss news  |
|
Back to top |
|
 |
|