Restricting frames per second

Hi. I have been trying to restrict the fps of my game. So, if some heavy processing takes place, the game should cut some other computation in order to maintain the fps.

I can`t think of a way to approach it. Any help would be greatly appreciated.

Thanks in advance.

There’s actually a setting for this in the Editor or Project settings (I forget which), under one of the sections. Might be Rendering or General.

I tried changing the min desired frame rate (Under project settings-> Engine-> General settings). The fps of the game still changes independent of this change. Am I doing something wrong?

You can set up a hard cap on the framerate (to say, never go over 60fps) with the console command:


t.MaxFPS 60

I think VSync must be enabled for MaxFPS setting to be taken into account.



GEngine->bSmoothFrameRate = true;
GEngine->SmoothedFrameRateRange = FFloatRange(30.0f, 60.0f);