Merge pull request #32714 from Calinou/gdscript-lsp-decrease-polling-frequency
Decrease polling frequency to 20 Hz in the GDScript language server
This commit is contained in:
commit
f4afaecdd1
1 changed files with 2 additions and 1 deletions
|
@ -56,8 +56,9 @@ void GDScriptLanguageServer::_notification(int p_what) {
|
|||
void GDScriptLanguageServer::thread_main(void *p_userdata) {
|
||||
GDScriptLanguageServer *self = static_cast<GDScriptLanguageServer *>(p_userdata);
|
||||
while (!self->thread_exit) {
|
||||
// Poll 20 times per second
|
||||
self->protocol.poll();
|
||||
OS::get_singleton()->delay_usec(10);
|
||||
OS::get_singleton()->delay_usec(50000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue