0 votes

Hi, I am working on my settings screen for now, and I was wondering where I could change the framerate at which the game is drawn, while in-game in the settings menu.

I tried doing:

ProjectSettings.set("debug/settings/fps/force_fps", framerate)

but to no avail.

How can I set drawing framerate while in-game?

Kind regards,


in Engine by (53 points)

1 Answer

+4 votes
Best answer

Use Engine.set_target_fps(value)

Source: https://docs.godotengine.org/en/stable/classes/class_engine.html#class-engine-property-target-fps

To confirm it works as expected, go to Project -> Project Settings -> Debug -> Settings -> Check Print FPS.

by (84 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.