Smooth section switches and first row moves on weaker TVs
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m16s
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m16s
Measured every browse transition on the onn, a Fire TV Stick 4K and a TCL TV with a new framestats harness and atrace breakdowns. - Stage card artwork and titles a few cards per frame while a section enters, so its first frame no longer composes every card at once. - Give every discovery list the lookahead cache window and nudge it once after a section settles, so the first move down composes nothing. - Activate a focused top tab two frames later, so its highlight responds before the section switches; start the page entrance after composition settles, using per-draw alpha instead of an offscreen layer. - Limit Coil to two concurrent decodes, drop the redundant window background, size card image requests explicitly, and skip a coroutine per card for focus restoration. Home -> Movies UI stalls drop from 150-200 ms to 70-90 ms and Movies row moves no longer skip frames. Device scripts can now target any authorized serial and tolerate the TCL's flaky network ADB link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0f926c0435
commit
629546a50c
14 changed files with 282 additions and 30 deletions
|
|
@ -16,9 +16,11 @@ def focus(root):
|
|||
if n is None:return ''
|
||||
return n.get('content-desc','') or ' '.join(labels(n))
|
||||
def wait(check,description,timeout=25):
|
||||
deadline=time.monotonic()+timeout
|
||||
deadline=time.monotonic()+timeout;root=ET.fromstring('<hierarchy/>')
|
||||
while time.monotonic()<deadline:
|
||||
root=snapshot()
|
||||
# uiautomator can't dump while an animation keeps the window busy; try again.
|
||||
try:root=snapshot()
|
||||
except RuntimeError:time.sleep(.5);continue
|
||||
if check(root):return root
|
||||
time.sleep(.2)
|
||||
raise AssertionError(description+'; last focus='+focus(root)+'; labels='+str(labels(root)[:10]))
|
||||
|
|
@ -27,6 +29,8 @@ def focused(value):return wait(lambda root:value in focus(root),'Expected focus
|
|||
def passed(name):results.append(name);print('PASS '+name,flush=True)
|
||||
def capture(name):time.sleep(.4);screenshot('final-'+name)
|
||||
def launch():
|
||||
# Idle test devices may be in their screensaver; WAKEUP only wakes, it never navigates.
|
||||
adb('shell','input','keyevent','KEYCODE_WAKEUP');time.sleep(1)
|
||||
adb('shell','am','force-stop','tv.kaleido.app')
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity')
|
||||
text('Continue Watching')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue