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

Vue-Volar - hight CPU usage on OSX #1295

Closed
sneila opened this issue May 12, 2022 · 5 comments
Closed

Vue-Volar - hight CPU usage on OSX #1295

sneila opened this issue May 12, 2022 · 5 comments

Comments

@sneila
Copy link

sneila commented May 12, 2022

Hi, my VSCODE, after the last update was overheating my Macbook Pro 2019, the fans run havok!.
Initially i thought that Electron/Vscode has something to do.

But once i verified it under the Process Explorer (Vscode), i realised that Volar used 200+ CPU time.

Open Vscode, and a VUE project with VOLAR enabled and it just starts the CPU usage 150%+ on my Mac, without cooling down.

@IIFelix
Copy link
Collaborator

IIFelix commented May 12, 2022

Have you tried TakeOverMode ? #471
Could maybe help.

@johnsoncodehk
Copy link
Member

Hi @sneila, can you reproduce this problem in https://github.com/johnsoncodehk/volar-starter? Will be helpful if you can provide a repro case.

@hmt
Copy link

hmt commented May 16, 2022

My MBA (M1) and iMac (Intel) both with latest OS are doing fine.

@letehaha
Copy link

My Macbook Pro 2019 with 16GB facing the same problem.

As you can see on the screenshot, it takes 109% of the CPU lol (tried to fit all the Command info, so you will need to zoom in to see the CPU usage clearly).

Screenshot 2022-05-31 at 22 20 19

But there is no limit actually, sometimes it is around 200%. But sometimes there is no problem at all too.

Usually, it goes up only when I'm typing something. In a sec or two, it goes down to 0%. But the problem is that when I'm coding, I'm typing each second, so my Mac is permanently frozen.

What I also noticed, it mostly happens when I'm working in a Vite+TS environment. In Webpack+TS or simply Webpack this issue occurs very rarely.

Perhaps this info will help somehow 🙏

@johnsoncodehk
Copy link
Member

You can increase volar.diagnostics.delay in 0.38.6 to reduce CPU usage on typing.

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

No branches or pull requests

5 participants