Unlocking frame rate

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Adinimys
:warning: Old Version Published before Godot 3 was released.

Hello everyone :slight_smile:

I’ve been searching through the documentation on the website and in engine as well as using Google but I didn’t found any answer to my question.

How can I unlock the fps of the engine to go higher than 60 fps ? I found the function OS.set_target_fps() but it only allows me to go bellow the 60fps cap, never above (or at least it didn’t work for me…)
I want to have the ability to unlock fps mostly to see during development process if a new feature or a bug is really affecting the frame rate and to compare the performance of different approchs and it’s a problem for me to have the frame rate locked to 60fps :confused:

Thanks for your answer :smiley:

:bust_in_silhouette: Reply From: KRL

Disable Vsync and set target fps to zero

Hum… I may be dumb but I didn’t found how to disable Vsync. I searched in project settings but I found nothing

Adinimys | 2016-03-12 16:51

Your graphics driver is probably forcing V-Sync. This is common on Intel hardware.

Calinou | 2016-03-12 18:03

If you are using laptopand Microsoft Windows then press right mouse button on your desktop and then select graphic properties then 3d setting and un-tick option “use V-Sync”

KRL | 2016-03-12 18:12

Well I guess the question as been answered so I can accept your answer.
Thanks :smiley:

But this is something I don’t really understand… When I was coding my own engine (with SFML), the driver was never forcing V-Sync and the framerate was never locked unless explicitly specified. So why is this the case with Godot Engine ? There must be something to do in the engine itself to change that, right ?
(btw, I’m using Xubuntu, not Windows and I could maybe change something in my driver but I would rather use something specific to my game project in order to not affect anything else and have the change carried with the game if I give it to coworkers)

Adinimys | 2016-03-12 19:20

same issue here, using Linux Mint and my FPS is capped by my refresh rate (144) and only in Godot, not anywhere else such as CSGO

batmanasb | 2016-03-13 10:53

Of course it is capped at your refresh rate. If your refresh rate is 144, than the highest fps your screen can display is 144 fps. If the fps goes higher on other games, then that means those games are rendering extra frames that aren’t being displayed, which wastes battery, makes no performance difference, and heats up the machine.

MmTtDeveloper | 2019-07-09 21:07

:bust_in_silhouette: Reply From: KelinciFX

It’s easy enough…

Just go to :

Scene → Project Settings → General Tab → Sections → Application → Make Sure “Target_FPS” has value 0 and it’s un-checked / un-ticked → Hit Close button

:slight_smile:

maybe that works on windows, but it’s still capped to my refresh rate on linux

batmanasb | 2016-03-13 10:51

Setting fps cap while V-Sync enabled will still hold fps 60 or lower

KRL | 2016-03-13 11:21

:bust_in_silhouette: Reply From: quickblack

Go to Project Setting → General → Display - > Window → Vsync → untick Use Vsync