Godot Engine

Godot Engine

Little freeze ~20sec every 10 minutes.
The engine seem to have a cron task every 10 min very accurately. (at h00, h10, h20, h30, h40, 50)
My issue is that this task block the engine for a few sec..

Any idea what the task is and why it take time ? a kind of auto-update checker or similar ?
< >
Showing 1-12 of 12 comments
No idea what you're experiencing.

What are your system specs?
What else is running?
Does it happen with an empty project?
Win10 system, nothing special.
Only Godot is affected, all other application (browser, steam) are not affected.
It seem to happen with an empty project, but maybe not when i'm in main screen with no project open (to verify).
Originally posted by Harg "Orange":
Win10 system, nothing special.
Only Godot is affected, all other application (browser, steam) are not affected.
It seem to happen with an empty project, but maybe not when i'm in main screen with no project open (to verify).

You might try checking the Task Manager (more specifically, the Resource Monitor accessed from within Task Manager) to see whether it's a resource usage issue. Right-click an empty space on the Taskbar (usually at the bottom of the screen), and choose "Task Manager", then click the button labeled "Resource Monitor". Keep both open so you can sort the Task Manager by CPU or Memory, and watch the Disk Usage in Resource Monitor. Perhaps put them on a second monitor (or second desktop if you don't have a second physical display - press WinKey + Tab to open the Activity View and add another desktop, if necessary), so that when the problem is occurring you can quickly switch to the monitoring applications and see what's hanging up.

I've seen these types of issues when you start running out of physical RAM and the system starts actively paging with not quite enough free disk space, and I've also seen similar behavior with a failing storage device or I/O controller. Be sure to keep your important files backed up on something external (physical, cloud, or both); sometimes bad things happen with little or no warning.

Another thing it could be is thermals "capping out"; the thread gets paused because Windows shuts down the CPU core it's working on because temps are out of range. This is more often an Intel thing than an AMD thing; AMD chips will often quite happily burn themselves up, rather than throttling. You might unplug your PC (the big box, not the display), take it outside, pop the case open, and use some compressed or canned air to blow the dust bunnies out (along with that quarter inch layer of skin dust sitting on top of your GPU). While you have it open, take a moment to reseat the RAM, GPU, all the drive cabling (at both ends!) and power cables, etc... be sure to reseat cards and cables after blowing the dust out, so you don't get debris in the connectors.

In case you think I'm just some keyboard jockey on the other side of a screen and a wire blowing smoke, you should know that I'm speaking with nearly 40 years of IT/support background, both corporate and "mom and pop's tech shop"; I may very well be wrong... but consider the implications if I'm right. Check your hardware, then check your software, then tell me I'm a script-reading jerk with no idea what I'm talking about.

Disclaimer: Beware programmers carrying screwdrivers.
task manager screenshot posted on imgur : https://imgur.com/a/oOgorrK

Something happen, clearly visible on CPU, very slight on first disk, but not caused by a disk failure imo. also visible peak on both GPU, ad finally some peak on network but not able to be sure regarding that one because there is all the time some stuff on the network level.

Don't be offended man, your attempt to help me is enjoyed. Also i'm also looking by myself from other source.. But i didn't find anyone with the same issue as me for the moment..
Do you know where i can check the logs from godot ?
And which process is running every 10 min, so i can try by disabling that
Not offended, just a veteran of the support trenches. I'm retired, so I have less reason to be nice while I drag someone by the hand to show them the power button while I ask them "Have you tried turning it off and then on again"... while staring at their uptime which indicates the PC hasn't even been rebooted for updates in 247 days.

Try not to take it personally, you're simply customer number 50-bajillion-and-two and the prizes are all gone.

I don't see anything obviously outrageous in that screenshot; was Godot actively "frozen" when you took that image? The spike in CPU and network over the last 20 seconds or so is a little concerning...

Have you checked for malware? If you have a malware scanner, is it scanning your project folder when those delays occur? If Godot is trying to recompile a script at the same time your virus checker wants to scan the changed file, it can cause a race condition.

Also, what else is running? You're at nearly 10GB of RAM usage, which seems a bit excessive unless you've got 30 tabs open to YouTube or Facebook or TikTok or something.

And finally, I'd like to point out that with an 8-core CPU, a single-threaded application can be completely maxing out a single core and only look like 12.5% CPU usage... despite the 9% usage in that screenshot, it looks like you spiked to ~ 50% just before you hit PrntScrn.

You might check Task Manager (like I said earlier); watch the application list on the left after telling it to sort by CPU, wait for the "hiccup" to occur and see what's spiking the CPU. Do the same for RAM to determine what's eating so much of your memory (that's memory, not storage - storage is your bookshelf, memory is your desk surface. Memory is how many things you can have open at once, while storage is how much stuff you have).

Forgive me if I'm over-simplifying the explanation; I'm used to "I have a PhD, dammit!" using his mouse upside-down and thinking it's somehow my fault.
Originally posted by Harg "Orange":
Do you know where i can check the logs from godot ?
Godot's logfiles should be at %APPDATA%\Godot\app_userdata
... but you're only going to see the same thing you see in the "output" window at the bottom of the Godot window while a project is running.

Originally posted by Harg "Orange":
And which process is running every 10 min, so i can try by disabling that
... that's one of the things Task Manager can tell you (and/or Resource Monitor, like I mentioned earlier - not the Performance tab in your screenshot... but I don't blame you for thinking I didn't mean precisely and exactly what I said; it seems no one actually reads instructions these days. Open Resource Monitor by clicking the button that says "Resource Monitor" on the first tab of Task Manager or from the drop-down menu under "File" in Task Manager, depending on which specific version of Windows you're running).

You might find it helpful to use a screen recorder, so you can go through a recorded video frame-by-frame at the appropriate moments and see what's suddenly getting very active every so often, without having to sit there watching like a hawk for 10 minutes at a time.

There's one built-in to Windows, if you have the XBox Game Bar installed. Press WinKey + G to open the controlling software.
There's also one built-in to the "GeForce Experience" software called "ShadowPlay" that you can access with Alt+Z, or by clicking on the icon in the system tray.
I would tell you to use the one built-in to Steam, but you should have the Steam Overlay disabled for Godot; if nothing else, it interferes with being able to use Shift + Tab to outdent code blocks (outdent = indent, but to the left instead of the right; whitespace is very important to GDScript programs' flow control).
If none of those suit you, you can try OBS Project (free, open source, and potentially very complicated - be sure to look up a "quick start" tutorial, but it's a solid piece of software), or the relatively minimalist (and also free) ScreenRec. I'm not providing links because I'm being lazy, but you should be able to type those names into the search engine of your choice and find their official websites fairly quickly and easily.

You will want to have the Task Manager open to the "Processes" tab (sorting by either CPU or Memory, highest numbers at the top - click the heading to sort by that field, and if the top number is not the highest, click it again to flip the direction), and Resource Monitor open to the "CPU" or "Memory" section (according to whatever you're sorting by in the Task Manager list).
Last edited by umop-apisdn; Feb 26 @ 11:58am
The previous screenshot was at the end of the freeze (18sec after beginning)
No malware detected.
During the freeze, Godot is taking ~15% of CPU. i don't see any other process starting at the same time.

Seem the issue is from Godot itself. So i came back to my question again, what in Godot is running at these 10 minute interval ?
Tried a solution enabling "single window mode", without success (found from a result here https://www.google.com/search?q=10+minutes+site%3Ahttps%3A%2F%2Fgithub.com%2Fgodotengine%2Fgodot)
The regularity could indicate something is happening on some sort of timer... have you checked your Windows power settings? Is Windows trying to power down the drive because it's not in use, or something?

Perhaps there's something "glitched" in Windows itself? Perhaps your drive (or its control board) are somehow faulty, or there's a physical defect at the specific place where Godot happens to be installed?


If it were my own system, my next steps would be reinstalling Windows and/or replacing storage devices and cabling. I'm at a loss to explain this issue; I'm pretty well stumped.
For the record.

With the recent 4.4 upgrade, the issue is no more.

:)
< >
Showing 1-12 of 12 comments
Per page: 1530 50