Skip to content

Would it be possible to populate a state hash? #86

@felipecrs

Description

@felipecrs

Hi,

I need to track whether the state of any LED changed in OpenRGB:

However, that operation is rather costly.

Could openrgb-python provide this information when updating the state?

When the state is received from the OpenRGB SDK server you already iterate through it (I think), so computing a hash of the state would likely be cheaper than re-checking everything later.

Even a hash might be overkill. A potentially cheaper approach could be to sum the RGB values for each LED visited and combine that with the current profile, brightness, speed, etc., producing a small checksum I can compare on updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions