Add a hover probe and measure where a full frame of the statistics page goes #27
Notifications
Due Date
No due date set.
Blocks
#31 Bring a full frame of the statistics page under 2 ms
nessar/arena-tracker
Reference: nessar/arena-tracker#27
Reference in new issue
Block a user
Parent
#1
What to build
A way to see where a full frame of the statistics page spends its time, so that making it cheaper (rule #1, budget 1: at most 2 ms per frame) starts from measurements rather than guesses.
Today a full frame costs 5–7 ms on a release build on the reference machine (
docs/performance.md). It is redrawn whenever the window moves (GPUI's move handling bypasses cached views, #17) and whenever the hovered row of the champion table changes (no part of the page is a cached view). Measured during #17 by posting synthetic mouse moves across the table rows, 240 per second, without touching the real cursor:scripts/prod run)scripts/win run)This ticket delivers the hover probe as a repository tool and the breakdown of a full frame; it does not optimise anything.
Acceptance criteria
docs/performance.md, under how to measure.Context
profilerfeature with a frame journal, which may give per-frame timings without changes to GPUI.docs/performance.md. Measure on release builds; debug numbers never count.Blocked by
None — can start immediately.
Implementation: branch
perf/27-hover-probe-frame-breakdown(commit64b1d3b), PR below.Breakdown of a full frame: desktop, for information only
These were taken on the desktop (Ryzen 7 7800X3D, RX 7800 XT, 3840x2160 @ 240 Hz, window 1920x1290 px at 150 %), which is not the reference laptop, while the PC was in use. The build is a release build with
--features profile, so the times come from GPUI's profiler. Each run: real data, game client closed, 15 s of loading, then the hover probe with 5 s idle and 5 s of hovering. The frames analysed are the 5 s of hovering.ARENA_TRACKER_HIDE)All times are in ms. The phase columns are p50 values.
Reading
prepaint. GPUI attributes 0.63 ms ofprepaintper frame to the table view alone. It is the first part to reduce.present, i.e. GPUI and DirectX submitting the frame). The app cannot reduce it.Closing. The hover probe and the profile build are merged (PR #37), and the desktop breakdown is recorded above. Rule #1 changed in
28319fc: single changes are no longer measured; a full benchmark on the reference laptop checks every budget before each major release. The breakdown on the laptop is folded into that benchmark, tracked in #32.