Skip to content

Commit

Permalink
Fix new performance regressions (short delay_usec)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tavurth committed Feb 15, 2022
1 parent 618324c commit ab5eaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/javascript/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ab5eaf0

Please sign in to comment.