From ab5eaf0ad97cfac2d3bc924ae99c5fc83cd3e838 Mon Sep 17 00:00:00 2001 From: Will Whitty Date: Mon, 14 Feb 2022 10:59:02 +0300 Subject: 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. --- platform/javascript/export/export_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/javascript/export') 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 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(); -- cgit v1.2.3