Setting a refresh rate?

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

I’ve noticed that in the Project Settings, there is a way to change the physics fps. What i’m wondering is if i can somehow set that in GDscript so i can make a menu around it for people to use so the game doesn’t stutter if they have an unusual monitor refresh rate.

:bust_in_silhouette: Reply From: magicalogic

To set the fps use
Engine.target_fps = some_number
for idle fps or

Engine.iterations_per_second = some_number

for physics fps.

Note that lowering physics fps below 60 can lead to stuttering.