VictorGrycuk / streamdeck-color-picker

A StreamDeck plugin that shows information about a pixel colour
GNU General Public License v3.0
13 stars 3 forks source link

Limit to the number of color picker tiles? #8

Open Ctrl-Alt-MattDel opened 3 years ago

Ctrl-Alt-MattDel commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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 commented 1 year ago

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