Release Kaleido 0.6.1 with smoother browsing
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m24s

Home, Movies and TV stay composed once shown and are revealed instead of
rebuilt; hidden screens are unplaced, have no semantics and take no focus.
The hero stays composed as a zero-alpha layer. Lazy-list prefetch runs on
FramePrefetch, which uses only spare frame time (unlimited only when truly
idle) instead of Compose's scheduler, which gave late frames unlimited time
and composed whole rows mid-scroll. CacheWindows keeps Compose's cache-window
strategy on that scheduler and premeasures nested cards.

With any accessibility service enabled, Compose walked and sorted every
composed node every 100 ms while browsing; rows and cards outside the
viewport now carry no semantics. Cards use a lighter artwork path, lay out
both title weights up front, and models are @Immutable. Preview and hero copy
compose over the transparent start of their fade. Library sync applies its
snapshot after 2 s without input, and moveToRow retries focus so a refreshed
card is never left unfocused.

profile_transitions.py now counts frames actually dropped on the display.
On the onn the 42 measured transitions dropped 24-38 frames, versus 55 for
0.6.0; details are in docs/runtime-verification.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-10-29 00:24:07 -07:00
parent ca5f0e20e5
commit 30e0f30bca
20 changed files with 502 additions and 111 deletions

View file

@ -37,8 +37,18 @@ def summarize(rows,period):
# 300 ms, is idle time (on weak GPUs every frame's latency exceeds one interval).
skipped=sum(max(0,round((b['IntendedVsync']-a['IntendedVsync'])/period)-1) for a,b in zip(rows,rows[1:])
if a['FrameCompleted']-a['IntendedVsync']>period and b['IntendedVsync']-a['IntendedVsync']<3e8)
# What the viewer sees: refreshes that repeated the previous frame while frames kept coming.
# Buffer stuffing hides many slow UI frames, so this is stricter than latency and catches
# stalls the heuristic above misses. Invalid present times (0 or before the vsync) are skipped.
# A gap longer than ~6 frames counts only when the frame before it ran long enough to cause it;
# otherwise nothing was animating (e.g. a later image arriving after an idle pause).
shown=[r for r in rows if r.get('DisplayPresentTime',0)>r['IntendedVsync']]
def stalled(a,b):
gap=b['DisplayPresentTime']-a['DisplayPresentTime']
return 0<gap<3e8 and (gap<=6.5*period or a['FrameCompleted']-a['IntendedVsync']>=gap-period)
dropped=sum(max(0,round((b['DisplayPresentTime']-a['DisplayPresentTime'])/period)-1) for a,b in zip(shown,shown[1:]) if stalled(a,b))
pick=lambda v,p:v[min(len(v)-1,int((len(v)-1)*p))]
return {'frames':len(rows),'skipped':skipped,'median':round(pick(latency,.5),1),'p95':round(pick(latency,.95),1),
return {'frames':len(rows),'skipped':skipped,'dropped':dropped,'median':round(pick(latency,.5),1),'p95':round(pick(latency,.95),1),
'max':round(latency[-1],1),'uiMax':round(ui[-1],1)}
def measure(name,code,expect,window,results):
@ -90,10 +100,10 @@ def main():
measure('tabs: home <- movies',21,lambda r:focus(r)=='Home',args.window*2,results)
summary={}
for name,runs in results.items():
summary[name]={'skipped':[r['skipped'] for r in runs],'p95':max(r.get('p95',0) for r in runs),'max':max(r.get('max',0) for r in runs),'uiMax':max(r.get('uiMax',0) for r in runs)}
summary[name]={'dropped':[r.get('dropped',0) for r in runs],'skipped':[r['skipped'] for r in runs],'p95':max(r.get('p95',0) for r in runs),'max':max(r.get('max',0) for r in runs),'uiMax':max(r.get('uiMax',0) for r in runs)}
report={'device':DEVICE,'transitions':summary,'runs':results}
(OUT/f'transitions-{args.label}.json').write_text(json.dumps(report,indent=2)+'\n')
print('\nSUMMARY',args.label,DEVICE)
for name,s in summary.items():print(f" {name:28} skipped={s['skipped']} p95={s['p95']} max={s['max']} uiMax={s['uiMax']}")
for name,s in summary.items():print(f" {name:28} dropped={s['dropped']} skipped={s['skipped']} p95={s['p95']} max={s['max']} uiMax={s['uiMax']}")
if __name__=='__main__':main()