GameTimeSync
function · gametime · primitive
- Address
0x6436c0· 324 bytes, up to0x643803- Signature
void __thiscall (void *this, const WowTime *time, bool force)- Meaning
- Syncs the clock to a server time: advances it forward, or stalls it when it is ahead
- Confidence
- verified, proof two
- Finding
- gametime/overview#server-sync
- Test
gametime::gametime_6436c0_sync_time
Finding: Server sync in gametime: overview
0x6436c0(time, force) compares the sent time with the clock's. The sent time gets the same offsets as above.
d = ((sentDay − day)·1440 + sentMinuteOfDay − minuteOfDay) mod 1440, signed with the dividend, each day being 0x642320 of the time.
Without force and with d <= 0 the clock takes the sent time, +0x34 grows by −d and the clock advances −d minutes (back
to the minute it showed), so the next −d minutes of frame time are skipped. Otherwise the clock advances d minutes when d > 0, then
takes the sent time.
The derivation is in the doc.
Callers 2
- GameTimeSetFromHost gametime
- ReceiveGameTimeUpdate unassigned
Callees 7
- WowTime::GetDayNumber unassigned
- WowTime::AddDays unassigned
- WowTime::GetMinuteOfDay unassigned
- WowTime::SetMinuteOfDay unassigned
- WowTime::FormatTime unassigned
- GameTimeAdvanceMinute gametime
- LogDiscard unassigned
Calls and jumps by a bare address, from tables/calls.tsv.