Hi,
We don't like VSync. We disabled VSync in the project's settings, but now the game runs too fast?
How can we set game's Frames Per Second to 30 ? Let us know, thanks!
This Godot game project is 100% open-source and can be viewed or downloaded below on GitHub anytime: https://github.com/FallenAngelSoftware/Godot-SpaceSwap2
Jesse www.FallenAngelSoftware.com
godots "vsync" is basically just frame-capping. You can set it to 30, 60, 120, 144... whatever you want from the project settings.
https://docs.godotengine.org/en/stable/classes/class_projectsettings.html
edit: actually I think debug/settings/fps/force_fps is specifically what you are looking for.
debug/settings/fps/force_fps
That works, but can FPS setting be modified at runtime(from script code)?
Jesse
@JeZxLee said: Hi, That works, but can FPS setting be modified at runtime(from script code)? Jesse
@JeZxLee said: Hi,
Engine.target_fps = 30 is how you can set the target FPS from code. Here’s the documentation for it.
Engine.target_fps = 30
Ok, thanks!