• Gunnar Sletta's avatar
    Improved animations in the new render loop · aef7dad9
    Gunnar Sletta authored
    
    To advance animations in line with vsync, we used a dedicated event
    from the rendering thread which we fired immediately after sync. This
    is a bit elaborate as we know in Gui when sync is complete and we can
    just animate there and then.
    
    This means we can remove all animation logic from the rendering
    thread, making it simpler.
    
    I also updated the syncAndRender pass so that it does not render
    anything if the scene graph reported no changes during the
    sync pass. This will prevent non-visual animations and property
    updates from triggering render passes which will save quite a
    few cycles.
    
    Change-Id: I62bb5484f0673f99abe726fca5a9b424f6b0a317
    Reviewed-by: default avatarEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
    Reviewed-by: default avatarSamuel Rødal <samuel.rodal@digia.com>
    aef7dad9