Skip to content

Reuse audio meter controls and stop unloaded timers - #534

Draft
iamfatness wants to merge 1 commit into
mainfrom
codex/xaml-lifetime
Draft

iamfatness wants to merge 1 commit into
mainfrom
codex/xaml-lifetime

Conversation

@iamfatness

Copy link
Copy Markdown
Owner

Audio meters replaced their entire XAML subtree on every level update and 33 ms decay tick. They now retain a bounded pool of segments and scale marks, updating brushes and geometry in place. Unloaded meters cannot restart their timers, and unload detaches the timer callback.

Related to #513. This reduces lifetime churn but does not claim to fix the unexplained idle fail-fast: the owner's correction establishes that ordinary finalizer-thread releases and forced GC can succeed. The issue should remain open. Framework versions are unchanged.

Validation: Release shell build passed; all 1,477 existing WinUI tests passed. A separate windowless WinUI executable passed 10,000 updates with stable control identities, responsive layout/scale checks, mute coloring, unloaded timer suppression, and a full GC followed by successful rendering. Added that executable to Windows CI. Live Loaded/Unloaded navigation and idle-crash validation remain outstanding.

Records the owner's next-work order in the backlog. Detailed evidence and reproduction commands are in docs/xaml-lifetime-hardening-2026-09-14.md.

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.

2 participants