CGGameUI::Update
function · ui · primitive
- Address
0x495590· 696 bytes, up to0x495847- Meaning
- Runs the interface frame update: zeroes the context count, signals memory events, reloads on request, polls play time
- Confidence
- verified, proof one
- Finding
- ui/billing#the-play-time-poll
- Test
ui::billing_minutes_left,ui::billing_poll,ui::glue_geom_480_495590_tick_scale
Finding: The play-time poll in ui: play time and the billing rest time
Each tick, while the deadline D is nonzero, the poll reads left and the minutes m above, and the flag byte's bit 3 (IGR). The steps run in this order:
| step | when | effect |
|---|---|---|
| first poll | line clock N is 0 | IGR: event 0x206 if m <= 600; else event 0x205 with m if m <= 30; either sets the latch L (L is not tested); N = now |
| line | N not 0, now - N >= 0 (signed), not IGR | a line if m <= 30; then D = 0 if now - D >= 0 (signed), else N = now + left % step, step 60000 when m <= 5, else 300000 |
| dialog | after the step above, every poll | IGR: event 0x206 if m <= 600 and L = 0; else event 0x205 with m if m <= 30 and L = 0; either sets L |
After its first poll an IGR plan never takes the line step, so its D and N stay as they are. The first poll never tests D.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 17
- QuitWithCode client
- __ftol crt
- OsGetAsyncTimeMs core
- CGGameUI::Initialize ui
- CGGameUI::Shutdown ui
- AddChatLine ui
- CGChat::QueueChatText ui
- ClientServices::GetCurrent net
- SStrPrintf storm
- lua_getgccount lua
- FrameScriptCollectGarbage ui
- FrameScript_GetText ui
- FrameScript_SignalEvent ui
- FrameScript_SignalEvent2 ui
- FrameScript::GetContext ui
- UpdateKeyboardLcd ui
- ceil crt
Calls and jumps by a bare address, from tables/calls.tsv.