Repository navigation
feat(composition): Measure scroll smoothness in SamplesApp - #24711
Conversation
|
Claude finished @MartinZikmund's task in 5m 23s —— View job Claude's review of #24711
Verdict: fix-first3 findings posted inline (1 medium, 1 medium/correctness, 1 low):
Cross-cutting observations (no inline comment needed):
|
d9c8b17 to
6db1e5d
Compare
|
Claude finished @MartinZikmund's task in 5m 12s —— View job Claude's review of #24711
Verdict: fix-first2 new findings posted inline (both medium, correctness):
Status of the previous review pass (unchanged commit, so still open): the three issues from the earlier Claude review — Cross-cutting observations (no inline comment needed):
|
|
Claude finished @MartinZikmund's task in 2m 10s —— View job Claude's review of #24711
Verdict: shipNo new findings. HEAD (
I independently re-read each of the four touched files in this commit ( Cross-cutting, no action needed:
Validation: Code-review only (static diff inspection) — I did not build or run this in the sandbox. The PR description's own evidence (Release build + multi-platform runtime baselining) stands as the runtime validation for this change. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Cancellation and teardown defects can leak probes, continue unattended runs after unloading, leave injected touches active, and skew latency measurements.
Review effort: Balanced
Findings: 5
Open (5)
Release active touch sequences when cancellation occurs · New Exclude synthetic setup moves from input latency measurements · New Make the toolbar usable at narrow window widths · New Stop and clear the manual probe during page unload · New Stop unattended tab iteration when page cancellation occurs · New
What changed in this PR
Adds quantitative scroll-smoothness diagnostics and synthetic scrolling scenarios to SamplesApp.
Changes:
- Adds frame-presentation sequencing and timestamps.
- Adds scrolling drivers, analysis metrics, JSON output, and UI.
- Adds logging and Android renderer-selection hooks.
Review verdict: 5 bugs found, primarily around cancellation, cleanup, and metric accuracy.
| File | Description |
|---|---|
CompositionTarget.RenderScheduling.cs |
Raises presentation notifications after swap-chain presentation. |
CompositionTarget.Rendering.cs |
Tracks frame sequences and presentation metadata. |
Main.Android.cs |
Adds renderer selection through an Android property. |
App.xaml.cs |
Enables trace categories through an environment variable. |
App.Tests.cs |
Exposes launch query options to samples. |
ScrollViewer_SmoothnessTester.xaml.cs |
Runs scenarios and reports results. |
ScrollViewer_SmoothnessTester.xaml |
Adds probe controls and ScrollView cases. |
ScrollSmoothnessProbe.cs |
Calculates frame-pacing and motion metrics. |
ScrollSmoothnessDrivers.cs |
Generates synthetic scrolling input. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
|
0e2b092 to
b1340b2
Compare
|
Claude finished @MartinZikmund's task in 24s —— View job Claude's review of #24711
Verdict: shipNo new findings. Both open Copilot findings from the last round are resolved.
I also checked that the Non-blocking notes:
Validation: code review only, by reading the diffs of the two new commits. I did not build or run the runtime test in this sandbox. |
|
The build 237840 found UI Test snapshots differences: Details
|
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Adds an internal FramePresented event on CompositionTarget, raised after the swapchain presented, carrying the recorded frame's sequence number. A repeated sequence means the previous frame was shown again. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
The ScrollSmoothnessTester gains a frame probe and synthetic input drivers (wheel, touchpad, touch drag/fling, keyboard, ChangeView) for ScrollViewer and ScrollView hosts. Each run reports frame pacing, repeated/stalled frames, backward steps and motion judder, and can run unattended from 'sample=Scrolling/ScrollSmoothnessTester&scrollprobe=all'. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Adds an 'external' scenario that records while input comes from outside the app (a person, adb, CDP touch), a hostStalls count for >250 ms presentation gaps, an opt-in console trace (&scrolltrace=1), and holds the results TextBox still during runs so it cannot disturb the frames being measured. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
'adb shell setprop debug.uno.samples.renderer vulkan|gl|software' selects the view for the next launch, so the same APK can be measured on each render path. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Pauses over 250 ms between two moves (discrete key presses, slow wheel ticks) are idle input, not slow frames, so they no longer count towards frame intervals, long frames or host stalls. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx
Guard OnLoaded against bad query values, stop injecting input once cancelled, keep a superseded run from resetting shared state, dispose the run CTS, include the fifth point in the judder guard, and catch Java throwables only in GetSystemProperty. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G7PsEU6gSpLZXrYuK8WWpt
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNK1FkwVycsFTk4kM4hq3n
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNK1FkwVycsFTk4kM4hq3n
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNK1FkwVycsFTk4kM4hq3n
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNK1FkwVycsFTk4kM4hq3n
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MKZbSx9YdLecXPDFCkcb9W
Rebased 2026-10-09. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NHPnucPE4WuxBEhL1RJG2T
b1340b2 to
12ce743
Compare
|
Claude finished @MartinZikmund's task in 13s —— View job Claude's review of #24711Verdict: ship (no new findings)This push is a rebase (the HEAD commit message says "Rebased 2026-10-09"). The commit list is the same 16 commits as the last pass, ending in Validation: I only checked the commit history with |
|
The build 238524 found UI Test snapshots differences: Details
|

GitHub Issue: closes #24708
Related: #23985
PR Type:
✨ Feature
What changed? 🚀
Problem: scroll-smoothness fixes and regressions (frame pacing, judder, stalls) were validated by eye — there was no repeatable, scriptable way to measure "did this actually get smoother" across the platforms and render paths Uno ships on.
Root cause: no diagnostics hook exists between the compositor's swap-chain present and anything that wants to observe it, and the SamplesApp had no scenario that drives scroll input synthetically and scores the frames it produces.
The change:
CompositionTarget.FramePresentedevent, raised afterswapChain.Presentwith the recorded frame's sequence number (a repeated sequence means the previous frame was shown again). Costs a null check when unsubscribed.ScrollSmoothnessTestersample, coveringScrollViewerandScrollViewtabs, with scenarios: wheel-burst, wheel-slow, touchpad, touch-fling, touch-drag, key-down, page-down, changeview, and external (records real OS/finger input).sample=Scrolling/ScrollSmoothnessTester&scrollprobe=all&scrolltabs=0,2,3,4,5prints[scroll-probe] {json}.UNO_SAMPLES_TRACEenv var enables trace-logging categories, and (Android)adb shell setprop debug.uno.samples.renderer vulkan|gl|softwarepicks the render view for the next launch.Evidence:
dotnet buildofSamplesApp.csproj -f net11.0-desktop -c Releaseagainst the .NET 11 preview SDK (UnoFastDevBuild=true) — 0 errors, 0 warnings.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_016WqaiNE2QBeUszQFongehx