Feature/speed source selection
Context of Contribution
- [ ] Bug Fix
- [ ] Refactoring
- [x] New Feature
- [ ] Others
Summary of the Proposal
Add user setting to choose what metric (CPU, GPU, or Memory) determines the cat's running speed. Adds a "Speed based on" submenu in Settings with radio-style selection. GPU option is hidden if GPU monitoring is unavailable.
Reason for the new feature
- Requested by maintainer: allow users to configure which metric affects speed
- Some users prefer GPU load to drive animation (gamers, GPU-intensive work)
- Some users prefer Memory usage (developers with many apps open)
- Default remains CPU for backward compatibility
- GPU option automatically hidden if Performance Counters unavailable
- Minimal UI: simple radio submenu in existing Settings menu
Checklist
- [x] This PR does not contain commits of multiple contexts.
- [x] Code follows proper indentation and naming conventions.
- [x] Implemented using only APIs that can be submitted to the Microsoft Store.
- [x] Works correctly in both dark theme and light theme.
- [x] Works correctly on any device.
This PR depends on https://github.com/Kyome22/RunCat365/pull/272, so I'll keep it as a draft for now.
@Anandb71 Could you please attach some screenshots?
Hey @Kyome22 , Even though I set 'speed based on' to GPU/Memory, the hover still shows CPU %. Should I change it?
Hey @Kyome22 , Even though I set 'speed based on' to GPU/Memory, the hover still shows CPU %. Should I change it?
Good catch! If the speed is based on the GPU/Memory, the hover message should be synced with it as well.
done! @Kyome22
Done! and tested!
GPUInfo.Total did not exist.