feat: add configurable visualizer frame rate setting (30/60/120 FPS)#719
feat: add configurable visualizer frame rate setting (30/60/120 FPS)#719devarshbagla wants to merge 1 commit intounchihugo:masterfrom
Conversation
|
Hi @devarshbagla, thank you for the contribution. Have you ran tests to check whether changing frame rates actually work? From my own observations it seems like it doesn't change much, as data doesn't fill up fast enough for the visualizer beyond 30 FPS. I'd love to hear your thoughts. |
|
Hi @unchihugo, I dug into the pipeline properly before responding and you're completely right, and I should have caught this before opening the PR. |
Summary
Adds a configurable frame rate setting for the Taskbar Visualizer, allowing users to choose between 30, 60, and 120 FPS. Changes apply immediately without requiring a restart.
Motivation
The visualizer's frame rate was previously hardcoded at 30 FPS with no way for users to adjust it. Users with higher refresh rate displays or more powerful hardware may prefer a smoother visualizer experience, while the default remains 30 FPS to keep CPU and battery usage low for everyone else.
Closes #642
Type of Change
What Changed
TaskbarVisualizerFrameRatepersisted int property toUserSettings.cswith default value of 30, plus aTaskbarVisualizerFrameRateIndexhelper for ComboBox bindingOnTaskbarVisualizerFrameRateChangedpartial method that notifies the Visualizer immediately on setting change_targetFpsinVisualizer.csfrom a hardcodedreadonlyfield to a mutable static, seeded from settings on startupUpdateTargetFps()static method inVisualizer.csfor live updates without restartTaskbarVisualizerPage.xamlwith a battery/CPU warning subtitle, available to all usersDictionary-en-US.xamlAdditional Information
Default remains 30 FPS. The setting is not paywalled.
Checklist