diff options
author | Will Whitty <tavurth@gmail.com> | 2022-02-14 10:59:02 +0300 |
---|---|---|
committer | Will Whitty <tavurth@gmail.com> | 2022-02-15 14:05:19 +0300 |
commit | ab5eaf0ad97cfac2d3bc924ae99c5fc83cd3e838 (patch) | |
tree | 0ecbd8978f69983a91f9e2f6a6318b24c93b8681 /platform/javascript/export | |
parent | 618324cd84d7d03aff4512298d9f012f3f956a8d (diff) |
Fix new performance regressions (short delay_usec)
My Mac was using 20% cpu again, which was related to the Javascript
Export plugin.
I had however no export templates setup in the project so this is more
of a stopgap fix.
Diffstat (limited to 'platform/javascript/export')
-rw-r--r-- | platform/javascript/export/export_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/export/export_plugin.cpp b/platform/javascript/export/export_plugin.cpp index 8a1360e421..d40ba2320a 100644 --- a/platform/javascript/export/export_plugin.cpp +++ b/platform/javascript/export/export_plugin.cpp @@ -645,7 +645,7 @@ Ref<Texture2D> EditorExportPlatformJavaScript::get_run_icon() const { void EditorExportPlatformJavaScript::_server_thread_poll(void *data) { EditorExportPlatformJavaScript *ej = (EditorExportPlatformJavaScript *)data; while (!ej->server_quit) { - OS::get_singleton()->delay_usec(1000); + OS::get_singleton()->delay_usec(6900); { MutexLock lock(ej->server_lock); ej->server->poll(); |