Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Changing quickly the light color is laggy #21

@vmorris1959

Description

@vmorris1959

When the light color is changed quickly, for instance using a color wheel, the color is not shown instantaneously in a smooth way but looks very laggy, however if I use the color wheel in the native Home or Hue apps it works as expected. I use the following procedure to change the light color:

let lightState = PHSLightState()
lightState.alert = .none
lightState.effect = .none
lightState.transitionTime = 1 as NSNumber
let color = PHSColor.create(withRed: Int32(newColor.redComponent * 255.0), green: Int32(newColor.greenComponent * 255.0), blue: Int32(newColor.blueComponent * 255.0))
lightState.setXYWith(color)
light.update(lightState, allowedConnectionTypes: .local) {}

Any ideas why or suggestions how to improve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions