Skip to content

Fix: Faster layout switches and folder loads with a lightweight selection checkbox - #145

Merged
MemerGamer merged 2 commits into
mainfrom
linux/ui-perf
Oct 10, 2026
Merged

MemerGamer merged 2 commits into
mainfrom
linux/ui-perf

Conversation

@MemerGamer

Copy link
Copy Markdown
Owner

Summary

  • Profiling (dotnet-trace, headless software rendering) showed Uno's default CheckBox template builds an AnimatedIcon (Lottie visual + expression animations) for every file item's hidden selection checkbox. That was about a third of the UI-thread time spent realizing list/grid/details panels. Added Files.SelectionCheckBoxStyle (plain border + check path) and applied it to the four item selection checkboxes.
  • Added a FILES_TRACE=1 UI stall probe ([files-ui] stall-ms=), timing only.
  • Added docs/linux-port/investigations/ui-slowness.md with the measurement table, findings and remaining larger ideas.

Measured (UI-thread CPU / settle, 1k-file folder, two runs each)

  • list switch: 2.4 s -> 1.1 s UI CPU, max stall 1142 -> 585 ms
  • select all 1k: 1481 -> ~400 ms
  • grid switch 762 -> ~500 ms, cards 1116 -> ~840 ms, folder open 1370 -> ~1050 ms
  • Idle CPU is 0 (no repaint loop); software renderer thread was idle, the UI thread (layout + picture record) is the bottleneck.

Test plan

  • Built src/Files.App -f net10.0-desktop clean.
  • Viewed checked/unchecked states in details, grid and list in the private Xvfb session.
  • Not verified: real KDE/GPU session, Windows build.

🤖 Generated with Claude Code

https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq

MemerGamer and others added 2 commits October 10, 2026 02:54
Uno's default CheckBox template builds an AnimatedIcon per file item, about a
third of the time spent realizing list/grid/details panels. Add a plain
border+path template for the item selection checkboxes, a FILES_TRACE UI stall
probe, and the ui-slowness investigation notes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
Co-Authored-By: GPT-6.1-sol (OpenAI Codex) <noreply@openai.com>
Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
@MemerGamer
MemerGamer merged commit ad4817f into main Oct 10, 2026
3 checks passed
@MemerGamer
MemerGamer deleted the linux/ui-perf branch October 10, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant