RunCat365 icon indicating copy to clipboard operation
RunCat365 copied to clipboard

Feature/speed source selection

Open Anandb71 opened this issue 10 months ago • 1 comments

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.

Anandb71 avatar Jan 11 '26 13:01 Anandb71

This PR depends on https://github.com/Kyome22/RunCat365/pull/272, so I'll keep it as a draft for now.

Kyome22 avatar Jan 11 '26 15:01 Kyome22

@Anandb71 Could you please attach some screenshots?

Kyome22 avatar Jan 23 '26 04:01 Kyome22

image

Anandb71 avatar Jan 23 '26 08:01 Anandb71

Hey @Kyome22 , Even though I set 'speed based on' to GPU/Memory, the hover still shows CPU %. Should I change it?

Anandb71 avatar Jan 23 '26 14:01 Anandb71

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.

Kyome22 avatar Jan 24 '26 07:01 Kyome22

done! @Kyome22

Anandb71 avatar Jan 24 '26 12:01 Anandb71

Done! and tested!

Anandb71 avatar Jan 24 '26 12:01 Anandb71

GPUInfo.Total did not exist.

Kyome22 avatar Jan 24 '26 13:01 Kyome22