Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable animations only of code annotations that are visible #3957

Closed
4 tasks done
polakowo opened this issue May 26, 2022 · 2 comments
Closed
4 tasks done

Enable animations only of code annotations that are visible #3957

polakowo opened this issue May 26, 2022 · 2 comments
Labels
change request Issue requests a new feature or improvement resolved Issue is resolved, yet unreleased if open

Comments

@polakowo
Copy link

Contribution guidelines

I want to suggest an idea and checked that ...

  • ... to my best knowledge, my idea wouldn't break something for other users
  • ... the documentation does not mention anything about my idea
  • ... there are no open or closed issues that are related to my idea

Description

A high amount of code annotations may cause high CPU usage because of constant style recalculations and rendering. This can be mitigated by showing animations only of code annotations that are visible in the viewport.

Use Cases

Reduce CPU usage.

Screenshots / Mockups

Screen Shot 2022-05-24 at 13 06 06

@squidfunk squidfunk added the change request Issue requests a new feature or improvement label May 26, 2022
@squidfunk
Copy link
Owner

Thanks for suggesting! Fixed in 5e442eb. This is actually a great optimization that was almost trivial to achieve.

@squidfunk squidfunk added the resolved Issue is resolved, yet unreleased if open label May 28, 2022
@squidfunk
Copy link
Owner

Released as part of 8.2.16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Issue requests a new feature or improvement resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

No branches or pull requests

2 participants