Skip to content

requestAnimationFrame triggers a full repaint #8075

Closed

Description

@paulrouget

even if there's no animation running.

See #7868 (comment)

Activity

  1. paulrouget commented on Oct 19, 2015

    @paulrouget
    ContributorAuthor

    From #7868 (comment)

    It does seem like we're doing a paint after rAF even when not necessary. It looks like it updates the styles for any animations, and assumes that it will need to do a new display list generation and paint. But in the case of a rAF with no actual animations or node changes, this isn't the case.

    My understanding of the situation is that the animation state is either AnimationsPresent, AnimationCallbacksPresent, NoAnimationsPresent or NoAnimationCallbacksPresent, and there's then no way to know if animations are running or not once rAF has been called.

    I guess the solution is to make the animation state values more granular.

  2. added
    I-perf-slow
    on Oct 19, 2015
  3. paulrouget commented on Apr 7, 2016

    @paulrouget
    ContributorAuthor

    Doesn't happen anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-perf-slow

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions