Skip to content

Conversation

@Birath
Copy link
Owner

@Birath Birath commented Mar 23, 2025

Blocking API calls on the main thread could cause key presses to not be registered by the application when done in quick succession, such as when a scroll wheel was used.

Batching volume increments done in quick succession (100ms by default) reduces the amount of API calls, avoiding throttling errors from Spotify. The batching delay is configured through a new config value, batch_delay_ms. Setting this to 0 disables the batching.

Birath added 2 commits March 23, 2025 15:58
Blocking API calls on the main thread could cause key presses to not be registered by the application when done in quick succession, such as when a scroll wheel was used.

Batching volume increments done in quick succession (100ms by default) reduces the amount of API calls, avoiding throttling errors from Spotify. The batching delay is configured through a new config value, `batch_delay_ms`. Setting this to `0` disables the batching.
@Birath Birath merged commit 0342193 into master Mar 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants