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

Limit to the number of color picker tiles? #8

Open
Ctrl-Alt-MattDel opened this issue May 4, 2021 · 3 comments
Open

Limit to the number of color picker tiles? #8

Ctrl-Alt-MattDel opened this issue May 4, 2021 · 3 comments

Comments

@Ctrl-Alt-MattDel
Copy link

I'm trying to display 5 buttons,(Name - Dynamic, RGB - Dynamic, Hex - Dynamic, RGB - On Click and Hex, On Click). The On Click actions seem to freeze and update sporadically. Could this be a memory issue?

Ideally, I'd like to do the on click tiles for three colours (store Hex and RGB three times), so a total of 9 tiles.

@VictorGrycuk
Copy link
Owner

Hi @Ctrl-Alt-MattDel, sorry for the tardiness.
It could be, I have to admit that the way that the timer was implemented is not the best, and they might be interfering with each other.

I will try to reproduce the behaviour and find a solution.

@VictorGrycuk
Copy link
Owner

Hi @Ctrl-Alt-MattDel, apologies for the late update on this.
I was able to reproduce the issue you mention, using multiple buttons does slow the update until they stop updating.

Sadly, I was not able to find a solution. Raising the update time from 10 milliseconds to 20 or 30 milliseconds does help, as long as you don't keep adding more dynamic buttons.

I have not yet tested much, but the cause might be either that the Stream Deck cannot support that many updates that fast, or that the API used to access the cursor button, pixel colour, and generate the image to show on the key is not very quick. I am inclined to the latter, as I also noticed that Windows itself starts having problem rendering things.

I will keep doing tests to see if the behaviour can be improved somehow.

@VictorGrycuk
Copy link
Owner

Hi @Ctrl-Alt-MattDel, sorry for the very late update.
I uploaded a new pre-release version that might fix the issue you experienced.

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

No branches or pull requests

2 participants