-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Performance Issues #128
Comments
My best guess is due to the language server, but it's hard to guess based on the information you have provided. Can you try the |
Hello, @zMenta . I think this is due to LSP. I used eglot to enable the following configuration, which would be slightly faster, but still not very fast. The EGLOT's LOG shows that the response of jsonrpc is very slow, which may be your performance issue. |
Thanks for the reply @xiliuya. I think probably is a LSP server performance issue like you said. It's a shame really. Like I mentioned before setting a delay it helped me not to have stutters, but it's counter productive since the completion feels slower that way. |
I'm using vertico, eglot, and consult for completion, rather than company or corfu (setq completion-in-region-function
(lambda (&rest args)
(apply (if vertico-mode
#'consult-completion-in-region
#'completion--in-region)
args))) I trigger completions manually with C-M-i and when I do, it's often quite slow. When I try to complete on If I trigger complete-at-point when completing position, I get much more reasonable results at around 44; It's still not as fast as I'd expect, there's maybe a 300-500 ms or so delay, but still, reasonable. This is likely an upstream issue, no? While it's possible that the eglot client is requesting some funky stuff, it seems like it's the godot server providing this insane amount of completions? |
It's not an ideal solution, but I've found that - at least in some cases - the freezing that happens when using Eglot can be "fixed" if you disable the events buffer by setting |
Thanks, this works so far. |
Not sure if this is a emacs-gdscript-mode problem or a Godot problem, so sorry in any case.
Using with either Godot 3.x or 4.x specially on completion suggestions the editor stutters or even freezes for a few moments.
Ex:
When typing "func _pro" and emacs suggests to code complete to "func _process(delta: float) -> void:" it occurs this stutter, freeze.
The text was updated successfully, but these errors were encountered: