Game running very slow but 60% cpu and 18% gpu

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Favkis

I started game on another slowish PC, and turned everything off, I have 190k tris without shaders and game runs at 20 fps but cpu and gpu are nowhere near 100% load

What are the specifications (CPU, graphics card, screen resolution) of the PC you’re getting low FPS on?

Calinou | 2020-12-06 23:28

:bust_in_silhouette: Reply From: Lopy

Make sure that nothing arbitrarily limits your fps, like VSync or the Force Fps in the project settings.

When you see that Godot is using 60% of your CPU, it doesn’t mean that it is not using it as much as it could. Your CPU is made of multiple cores, and any program can only use so many at once. If you want Godot to better share the work among your different CPU cores, you can try to set Rendering/Threads/Thread Model to Multi-Threaded.
Also, if you manage to isolate a specific task that takes a lot of time, you can put it on its own Thread. Threads do not necessarily run on different cores from one another, but you are explicitly telling your operating system that it may do so.

Finally, there can be various bottlenecks. If the program is waiting for your storage, the system runs low on RAM, etc, then you will see big slowdowns, even if your program seems idle CPU-wise.

See also the Optimization tutorials in the documentation.

Calinou | 2020-12-25 11:02