// UI‑thread loop – runs at the device’s refresh rate runOnUI(() => 'worklet'; const tick = (ts: number) => viewState.current = reducer(viewState.current, type: IntentType.Tick, payload: ts ); requestAnimationFrame(tick); ; requestAnimationFrame(tick); )(); ;
// --------------------------------------------------------------------- // 2️⃣ Reactive UI state – mutable container on UI thread // --------------------------------------------------------------------- export const viewState = makeMutable<ViewState>(initState); Flames Hub Sakura Stand Mobile Script
Technical White‑Paper
// --------------------------------------------------------------------- // 3️⃣ Public API – start/stop the script // --------------------------------------------------------------------- let subscription: ZenObservable.Subscription | null = null; // UI‑thread loop – runs at the device’s