Godot: Godot editor using ~70% cpu. (macOS) Latest build as of 10-23-2017

Created on 24 Oct 2017  Â·  38Comments  Â·  Source: godotengine/godot

macOS Sierra
10.12.6 (16G29)
MacBook Pro (Retina, 13-inch, Late 2013)
2.4 GHz Intel Core i5
8 GB 1600 MHz DDR3
Intel Iris 1536 MB

I've compiled for OSX as the docs list.

user@host:~/godot$ scons platform=osx
user@host:~/godot$ cp -r misc/dist/osx_tools.app ./Godot.app
user@host:~/godot$ mkdir -p Godot.app/Contents/MacOS
user@host:~/godot$ cp bin/godot.osx.opt.tools.64 Godot.app/Contents/MacOS/Godot
user@host:~/godot$ chmod +x Godot.app/Contents/MacOS/Godot

Editor uses around 70% cpu.

zuexeuz.zip

archived macos editor

Most helpful comment

Well no, the 70% CPU usage is not a feature :) What @reduz was referring to is the Update Always / Update Changes and its impact on CPU usage, which is expected. But 8%-12% CPU usage in Update Changes and 70% in Update Always is a bug.

All 38 comments

I can confirm that at least on Windows x64, the current master@4396712 idles at 0-1% with a project open in the editor. Seems to be Mac OS X specific?

I tested it with OS X Yosemite and for me it idles at 1-2%.
Edit: Tested with the attached project.

@ismyhc is there any message in the system console?

@Zylann no messages in the console. I think its related to the project I attached. I Just opened a new project and the editor hovers around 6-8 %. Could you try loading the project I attached? Its very possible I may have changed some setting that may be causing the issue. Im going to recreate the project from scratch. Its very small.

macOS 10.13 (17A405): 2-3% idle with attached project opened.

@bruvzg Unfortunately Im not in a position to upgrade to High Sierra quite yet. :( Im trying to figure out what it is about the project that is causing the issue.

This is for master, right? there are other reports of apparently the same issue on 2.1 #8766

@eon-s yes, this is for master as of 2 days ago. Im going to try and do more testing today.

Is this output correct?

OpenGL ES 3.0 Renderer: Intel Iris OpenGL Engine
GLES3: max ubo light: 409
GLES3: max ubo reflections: 455, ubo size: 144
ARVR: Registered interface: Native mobile

Should my mac laptop be using OpenGL ES 3.0? I wouldn't expect be using OpenGL ES.

I think Godot 3.0 always uses OpenGL ES 3.0, yes.

@ismyhc It is correct, same renderer use OpenGL 3.0+ on desktop platforms and GL ES 3.0 on mobile/web.

@mhilbrunner @bruvzg ah, okay. Well I just started a brand new project. One main scene with nothing in it, one scene which is just a node with script attached that draws rect and boom, back up to ~70% cpu. Deleted all the scenes, and still stays at ~70%. Im baffled as to what is causing this.

@ismyhc Try using profiler: Xcode > Open Developer Tool > Instruments > Time Profiler, maybe it will give some additional information.

@bruvzg Okay, I did upgrade to High Sierra, but still same issue. I opened up Time Profiler and heres a screenshot.

This seems like the start of it: RasterizerCanvasGLES3::_canvas_item_render_commands(RasterizerCanvas::Item, RasterizerCanvas::Item, bool&)

screen shot 2017-10-25 at 4 31 23 pm

Just an FYI. Alpha 1 doesn't have this problem. Im going to start backtracking master to see if I can determine when the problem starts.

Before attempting a bisect, make sure to build alpha 1 (f55211ae0dc202cc015c247495af8e05af81b24b) locally to confirm that it's not affected by this issue, as it's possible that official binaries work fine but that you self-compiled ones are problematic.

This seems like the start of it:
RasterizerCanvasGLES3::_canvas_item_render_commands

Maybe v-sync is not working (it is enabled by default). Related to #12355?

Is the spinning wheel in Godot top right corner spinning when you see this
cpu usage, even if you do nothing?

On Thu, Oct 26, 2017 at 10:08 AM, bruvzg notifications@github.com wrote:

This seems like the start of it:
RasterizerCanvasGLES3::_canvas_item_render_commands

Maybe v-sync is not working (it is enabled
https://github.com/godotengine/godot/blob/master/main/main.cpp#L115 by
default). Related to #12355
https://github.com/godotengine/godot/pull/12355?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/12366#issuecomment-339660074,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z206X-iGO0e68LcCNOIp9EurVvqRuks5swIRBgaJpZM4QDvQO
.

@reduz yes, spinning wheel is always spinning. Im building alpha-1 as @akien-mga suggested right now to see if the issue is happening from my local build.

  1. I can confirm building alpha 1 (f55211a) locally works as expected. No cpu issues.
  2. As of Sep 27, and commit 4f39ce3 the cpu issues DO exist.

So I just noticed something. When clicking the spinner, the option "Update Always" is checked. If i set this to "Update Changes", the cpu usage hovers around 8% - 12%. Im not sure if this is the fix, but it does help.

That is not a bug, it's a feature...

On Oct 26, 2017 11:40 AM, "Jacob Davis" notifications@github.com wrote:

So I just noticed something. When clicking the spinner, the option "Update
Always" is checked. If i set this to "Update Changes", the cpu usage hovers
around 8% - 12%. Im not sure if this is the fix, but it does help.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/12366#issuecomment-339688020,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z20Ij4SMGle2ULhxMd74GhWdzR-7iks5swJm8gaJpZM4QDvQO
.

@reduz im satisfied with that answer :)

It's supposed to be enabled by default.. (update changes)

On Thu, Oct 26, 2017 at 4:27 PM, Jacob Davis notifications@github.com
wrote:

@reduz https://github.com/reduz im satisfied with that answer :)

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/12366#issuecomment-339774576,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z29LOmbD4kL1nWSFPlO_CN6WZPgzVks5swN0_gaJpZM4QDvQO
.

@reduz I think what happened was that I not knowing what it meant, clicked on it and it popped up a alert that said it was a deprecated setting. I must have assumed since the alert popped up that the change didn't occur so I never thought twice about it, but in fact it was changed to (update always).

Anyways, mostly just confusion on my part. Feel free to close this ticket. :)

Well no, the 70% CPU usage is not a feature :) What @reduz was referring to is the Update Always / Update Changes and its impact on CPU usage, which is expected. But 8%-12% CPU usage in Update Changes and 70% in Update Always is a bug.

Wait, the popup that talks about the deprecated function actually turns on the deprecated function?

Why not disable it at all if should not be used anymore?

Why not disable it at all if should not be used anymore?

Because it's still needed in some cases due to bugs, so we need to be able to enable it to debug and fix bugs.

@eon-s And this #11030

@akien-mga ah, ok, but the popup message is kind of confusing, like meaning the option is not working, maybe a "deprecated" or "for testing only" text on the menu may be better.

Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz
GeForce GTX 670
Ubuntu 16.04
master 4d5b828

now spinner keeps rotating and editor uses 50% cpu usage on my machine on idle in Update changes setting. :confused:

now spinner keeps rotating and editor uses 50% cpu usage

Same on macOS.

with c846e49a7d3439d9aef5d499ad403304d89a3b3c
editor uses 4~5% CPU now.

Is the spinning wheel spinning while this happens?

On Sat, Nov 25, 2017 at 7:50 PM, Razah notifications@github.com wrote:

Macbook Pro 15 (2016) intel core i7 - Sierra 10.12.6
Editor uses %17 cpu on idle. and cpu temp too high.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/12366#issuecomment-346971410,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z2w_CV7_30a_lfEm5Jr60me8h_zN_ks5s6Jm3gaJpZM4QDvQO
.

Can you enable the update spinner and set to update changes?

On Sun, Nov 26, 2017 at 1:38 PM, Razah notifications@github.com wrote:

this is happens random, between %5 and % 20, empy project on idle. (sorry
for my english)
[image: ekran resmi 2017-11-26 19 30 04]
https://user-images.githubusercontent.com/33985414/33242116-d9874b70-d2e0-11e7-88b0-7636a24fdc90.png

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/12366#issuecomment-347021476,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z27dWlBOkM3QqR0XrjYlQDqhwh6uEks5s6ZQJgaJpZM4QDvQO
.

alright, but unless you update the spinner and set it to update changes,
then tell me what's going on (if it's spinning or not), it's difficult to
help.
Also you have VSync enabled?

On Sun, Nov 26, 2017 at 1:47 PM, Razah notifications@github.com wrote:

spinner is not affecting cpu. This is like a Editor gui problem or driver,
When mouse scroll zoom out in viewport cpu is %17 when minimize to dock cpu
%5

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/12366#issuecomment-347022045,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z229PuIMkb_sbHaeb0GHVdKuG1zzUks5s6ZYcgaJpZM4QDvQO
.

Do you see high CPU usage when it's not spinning? Also again, do you have
VSync off?

On Sun, Nov 26, 2017 at 1:55 PM, Razah notifications@github.com wrote:

it's spinning but not always,

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/12366#issuecomment-347022567,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z2xdzOH-WXWgB54XkG0w7G5R7o3grks5s6ZgEgaJpZM4QDvQO
.

Closing as there were no updates since reduz's questions a year ago.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blurymind picture blurymind  Â·  3Comments

bojidar-bg picture bojidar-bg  Â·  3Comments

Spooner picture Spooner  Â·  3Comments

timoschwarzer picture timoschwarzer  Â·  3Comments

mefihl picture mefihl  Â·  3Comments