Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnnePro2: Adjust RGB flushing #18640

Merged
merged 1 commit into from
Oct 8, 2022
Merged

AnnePro2: Adjust RGB flushing #18640

merged 1 commit into from
Oct 8, 2022

Conversation

Jpe230
Copy link
Contributor

@Jpe230 Jpe230 commented Oct 7, 2022

Description

Move the flushing of the RGB Matrix from the matrix scan to the flush driver function.

From my tests: the flickering is reduced, and the animations are more fluid.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@Jpe230
Copy link
Contributor Author

Jpe230 commented Oct 8, 2022

CI build errors seem to be unrelated to the PR scope.

@tzarc tzarc requested a review from a team October 8, 2022 05:07
@tzarc
Copy link
Member

tzarc commented Oct 8, 2022

Works fine on mine.

@zvecr zvecr merged commit 85dc473 into qmk:develop Oct 8, 2022
@Jpe230 Jpe230 deleted the develop_ap2_flush branch October 8, 2022 21:48
ramonimbao pushed a commit to ramonimbao/qmk_firmware that referenced this pull request Nov 28, 2022
@kdarkhan
Copy link
Contributor

kdarkhan commented Dec 3, 2022

@Jpe230 with these changes there is a noticeable latency when I type on my C18 keyboard with animated LED profile enabled. Typed keys are registered slower than usual.
The latency goes away as soon as I disable LEDs. Did not have the issue before.

kdarkhan added a commit to kdarkhan/qmk_firmware that referenced this pull request Jan 24, 2023
The current value `RGB_MATRIX_LED_FLUSH_LIMIT 16` causes noticeable
input latency when animated RGB profiles are activated. The latency
goes away as soon as the RGB is switched off.

This issue was introduced after refactoring in
qmk#18640

Maybe a proper fix will be refactoring the logic and adjusting
the frequency of UART communication. This is a quick fix to make
the keyboard usable with RGB enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants