godotengine / godot-vscode-plugin

Godot development tools for VSCode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v2.0.0 maxes out my CPU

Veradictus opened this issue · comments

Godot version

4.2.2-rc2

VS Code version

1.88.1

Godot Tools VS Code extension version

2.0.0

System information

Windows 11

Issue description

Hard to explain why exactly, but after coding for a while, the extension causes 100% CPU usage on my desktop PC. Has happened on other devices as well. As soon as I disable the extension the CPU usage drops to normal amounts.

The plugin must be connected to Godot for this to occur. If the plugin disconnects (after Godot has closed), the CPU usage will persist until all 10 connection trials have completed. Reconnecting afterwards does not yield anymore whacky CPU usage.

Again, I wish I could give more info on this, but I am still trying to diagnose it.

image

Steps to reproduce

I wish I could give more info, all I did was code for an hour or so, and eventually my computer became extremely slow and I began trying to find the issue.

Oh that's weird. Thanks for the report.

I've definitely seen some weird behavior related to the LSP connection, and rewriting that entire module has been on my list for a while.

Maybe you could try cloning the repo and launching the extension in development/debug mode?