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

Unnecessarily high CPU usage for cursor blinking #30906

Closed
ExecThTs opened this issue Jul 18, 2017 · 1 comment
Closed

Unnecessarily high CPU usage for cursor blinking #30906

ExecThTs opened this issue Jul 18, 2017 · 1 comment
Assignees
Labels
editor-core Editor basic functionality

Comments

@ExecThTs
Copy link

  • VSCode Version: Code 1.14.1 (2648980, 2017-07-13T19:12:01.887Z)
  • OS Version: Linux x64 4.10.0-19-generic
  • Extensions: none

Steps to Reproduce:

  1. Open a file, and put the cursor anywhere.
  2. Watch CPU usage while the cursor blinks
  3. The cursor stops blinking after ~10 seconds, notice how the CPU usage lowered by ~15%
  4. Move the cursor again, it starts blinking, and CPU usage goes up again by ~15%.

I use the phased cursor blink setting.

@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels Jul 18, 2017
@rebornix
Copy link
Member

@ExecThTs for phased style blinking cursor, we use javascript to mimic the bezier curve which consumes so much CPU, you can see our detailed description in #22900 (comment) .

Right now due to Chromium's animation bug, this is our best solution.

@rebornix rebornix removed their assignment Jul 18, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-core Editor basic functionality
Projects
None yet
Development

No branches or pull requests

2 participants