Fix : Fix controller Stick visualizer perfomance #119

Merged
Ghost merged 1 commit from Babib3l/Ryubing:controller-visualiser-performance into master 2026-05-30 20:33:52 +00:00
Contributor

This PR aims to fix a bug inside the settings window that caused the Controller Stick visualizer to run at extremely degraded performance when the selected profile had a rainbow LED configuration:
Old behaviour :
New / updated behaviour :

The issue was that the input settings page automatically subscribed controllers to rainbow LED updates when a saved profile with rainbow LEDs enabled was loaded.
Reopening input settings on a non-default controller profile could immediately start the rainbow LED update loop from the settings UI, which caused the stick visualizer to become sluggish or jittery on affected controllers. The preview handler is now only registered when the rainbow LED option is changed in the settings UI, and it uses a stable handler so duplicate callbacks are not stacked.

This PR aims to fix a bug inside the settings window that caused the Controller Stick visualizer to run at extremely degraded performance when the selected profile had a rainbow LED configuration: Old behaviour : <video src="/attachments/1915ab74-6e1b-4e2f-9182-820cbed5359b" title="Screen Recording 2026-05-30 105859" controls></video> New / updated behaviour : <video src="/attachments/dd293402-19e7-439e-8aa6-114d4ee22404" title="Screen Recording 2026-05-30 110338" controls></video> The issue was that the input settings page automatically subscribed controllers to rainbow LED updates when a saved profile with rainbow LEDs enabled was loaded. Reopening input settings on a non-default controller profile could immediately start the rainbow LED update loop from the settings UI, which caused the stick visualizer to become sluggish or jittery on affected controllers. The preview handler is now only registered when the rainbow LED option is changed in the settings UI, and it uses a stable handler so duplicate callbacks are not stacked.
Ghost force-pushed controller-visualiser-performance from efc3bb1673
All checks were successful
Pull Request Triage / triage (pull_request_target) Successful in 20s
Build PR / linux-arm64 (Release) (pull_request) Successful in 4m31s
Build PR / win-arm64 (Release) (pull_request) Successful in 7m46s
Build PR / win-x64 (Release) (pull_request) Successful in 7m48s
Build PR / linux-x64 (Release) (pull_request) Successful in 7m50s
Build PR / macOS Universal (Release) (pull_request) Successful in 12m25s
to d7427449b4
All checks were successful
Build PR / win-x64 (Release) (pull_request) Successful in 11m12s
Build PR / linux-arm64 (Release) (pull_request) Successful in 5m41s
Build PR / linux-x64 (Release) (pull_request) Successful in 9m6s
Build PR / win-arm64 (Release) (pull_request) Successful in 6m26s
Build PR / macOS Universal (Release) (pull_request) Successful in 8m0s
2026-05-30 20:33:34 +00:00
Compare
Ghost merged commit 824643e143 into master 2026-05-30 20:33:52 +00:00
Ghost deleted branch controller-visualiser-performance 2026-05-30 20:33:57 +00:00
Ghost added this to the 1.4.0 milestone 2026-06-27 17:17:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
projects/Ryubing!119
No description provided.