Documentation
¶
Overview ¶
Command paintcullprobe is the on-device check for the mobile paint walk's off-clip culling (#481, the desktop half was #464). It runs perfscenes' spinner scene, n cards in a scroll container plus one infinite progress bar, and prints to stdout:
RESULT scene=spinner n=... frames=... fps=... cpu_ms_per_frame=... CAPTURE offset=... size=WxH sha256=...
The RESULT line is frame cost, measured as perfscenes measures it: one refresh per painted frame, after a warm-up, with cpu_ms_per_frame counting every thread; a CPU profile of that window goes to the app's temporary directory (PROFILE line). Then the spinner is hidden and the window is captured at a series of scroll offsets, some leaving a card edge inside the cull margin; build the probe before and after a change and the hashes must match.
Build and run on an iOS device (stdout streams back with --console):
bellui package -os ios -app-id com.trendvidia.paintcullprobe -src hack/paintcullprobe xcrun devicectl device install app --device <id> paintcullprobe.app xcrun devicectl device process launch --console --terminate-existing --device <id> com.trendvidia.paintcullprobe
On Android, build with -os android and read stdout with adb logcat. On a desktop, go run ./hack/paintcullprobe opens a 1920×1080 window.