Question: Are bindings constantly being evaluated if the screen is off or if LL is in the background?

Question: Are bindings constantly being evaluated if the screen is off or if LL is in the background?

Use case: I have a clock widget setup to change item properties every second. If I use a script to do this, I can clear timeout on desktop pause and resume on desktop resume. If I use bindings to achieve the same effect, do the bindings continue to get evaluated when LL is in the background or when screen is off, thereby draining more battery than the script solution?

]]>

7 Commentsto Question: Are bindings constantly being evaluated if the screen is off or if LL is in the background?

  1. Anonymous says:

    < ![CDATA[

    Bindings are automatically disabled when the launcher is not active (at least they were last time I checked)

    ]]>

  2. Anonymous says:

    < ![CDATA[

    thanks! very helpful and what i was hoping to hear. Pierre Hébert can you confirm this?

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Confirmed, everything is paused, except if you manually set a timeout through script that trigger some binding evaluation.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Thank you!

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Pierre Hébert would it be possible to apply this system to custom variables somehow?

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Do you mean : when a custom variable is modified, defer updates until the app is resumed ?

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Pierre Hébert no, I was thinking a step further: I’d like to not update custom variables while they aren’t used. E.g. if I have a complex computation whose result is set as variable, it would be great to not run that computation if the result isn’t needed anyway.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *