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

Plugin is significantly slowing down Godot 4 editor #10

Open
HauntedBees opened this issue Oct 6, 2023 · 8 comments
Open

Plugin is significantly slowing down Godot 4 editor #10

HauntedBees opened this issue Oct 6, 2023 · 8 comments

Comments

@HauntedBees
Copy link

I've been using this plugin since the 3.x days but recently I've noticed that Godot 4.1 had been running extremely slowly. I upgraded to 4.1.2 to see if that was the issue and it was still running slowly. After trying several other things, I started disabling plugins one by one, and after disabling godot-wakatime, everything is working as expected -- no delays when switching between scripts in the script editor, no freezing when trying to rotate a 3D scene. This is a recent issue; I'd been using v1.5.0 of the plugin for a few months now and only within the past few weeks has this slowness been noticeable.

Plugin Version: 1.5.0
Godot Version: v4.1.2.stable.official [399c9dc39]
Platform: Linux Mint 21.1 Cinnamon 5.6.8 Kernel Version 5.15.0-86-generic
Processor: Intel© Core™ i5-6600K CPU @ 3.50GHz × 4
Memory: 32GB

@alanhamlett

This comment was marked as outdated.

@alanhamlett

This comment was marked as outdated.

@alanhamlett

This comment was marked as outdated.

@alanhamlett

This comment was marked as outdated.

@gandarez
Copy link

gandarez commented Oct 6, 2023

The only thing I can see is Godot doesn't run the wakatime-cli in the background and freezes the main process?

@gandarez
Copy link

gandarez commented Oct 6, 2023

Looking deeper to the code it's using an older version of wakatime-cli v1.54.0. It should always use the latest version as much as possible.

https://github.com/thomazthz/godot-wakatime/blob/master/addons/wakatime/wakatime.gd#L9C7-L9C23

@HauntedBees
Copy link
Author

Hi @gandarez - I updated the code to use the latest version of wakatime-cli - v1.85.1 - then re-enabled the plugin. It installed the right version, and immediately began running slowly again. When the plugin is active, switching between different scripts in the Script Editor goes from being immediate to taking over 2 seconds, and saving a file goes from taking under half a second to taking around 3 seconds.

I cannot downgrade to version 1.4.0 of godot-wakatime as 1.5.0 is the first version to support Godot 4.

@gandarez
Copy link

gandarez commented Oct 7, 2023

@thomazthz does wakatime-cli run in foreground and blocks the UI?

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

No branches or pull requests

3 participants