Framerate Issues

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

Hey, guys! I am having trouble getting Godot to run my game above 30 FPS. I’ve tried all I can to get it running at a solid 60, from going to Project → Project Settings → Debug → Settings → Force FPS to using ProjectSettings.set(“debug/settings/fps/force_fps”, framerate) to using Engine.set_target_fps(value), but I cannot for the life of me, figure out a way to make it run smoothly without pure luck. Any help would be appreciated, thanks.

EDIT: The game is 2D as well.

Also btw, I have tried changing Force FPS to 0, but it still doesn’t run that great.

MathsOwl | 2022-09-26 08:19

What graphics card model do you have? What’s the window size you’re running your tests at?

Calinou | 2022-09-26 12:32

:bust_in_silhouette: Reply From: Calinou

from going to Project → Project Settings → Debug → Settings → Force FPS to using ProjectSettings.set(“debug/settings/fps/forcefps”, framerate) to using Engine.settarget_fps(value),

As mentioned in that property’s description, increasing Force FPS will not increase framerate if the hardware can’t keep up.

You need to find and fix performance bottlenecks in your project instead: Performance — Godot Engine (stable) documentation in English

Note that on old integrated graphics, you may never be able to reach a stable 60 FPS in the first place, even in an empty scene. This is especially the case if running at native resolution – asking integrated graphics to render a scene in 1080p or more is asking a lot from it :slight_smile:

Consider setting Display > Window > Size > Shrink to 2 or 3 to reduce the rendering resolution in 3.x. In 4.0, you can reduce Scaling 3d > Scale instead, which will only reduce the 3D rendering resolution, not the 2D rendering resolution. This is also feasible in 3.x but it requires more setup, as per the 3D scaling demo.

Okay, thanks. I’ll try it out.

MathsOwl | 2022-09-26 13:33

:bust_in_silhouette: Reply From: MathsOwl

UPDATE: My PC only runs the game at 60 FPS when it’s charging, and it only took me until now to realise it.

hii…according to me You can experiment with adjusting the physics settings, especially if your game involves a lot of physics calculations. Lowering the physics step rate or adjusting collision shapes can sometimes improve performance.