How to limit FPS?

I want to limit FPS in a game. For example, I want to have about 40 fps. I want to do it for optimization purposes.

That makes no sense … you would optomise to increase FPS not restrict FPS to optomise. You can enable VSYNC, this will force the display to use the VSYNC of your display and will attempt to keep the FPS at that setting … once again however this would not help you to optomise.

Maybe if you tell us what you are trying to achieve, we can maybe help you more … but right now what you want to do makes no sense.

Hi OrchestralMusician, you can use blueprint or engine setting:

  1. Use level blueprint:

console_cmd_fps.png

  1. Use engine setting:

engine_setting_fps.png

qdelpeche
I need to limit upper bound of the FPS. For example: if a game can go with 150FPS - limit it to just 40FPS it if really fits to my needs. If a game can go only with 10FPS - ok let’s work with 10FPS.

Nate
Thanks exactly what I need!

Okay cool … glad that Nate came to the rescue … learning something here myself. Thanks Nate.

By the way - if you can change your MaxFPS in BP so you can control your MaxFPS dynamically. For example if you need some beautiful effect you need to increase FPS and if you don’t need many FPS you can limit your FPS. The last I think is convenient when you do some 2d staff, platformers or you just don’t need 120-200 fps and you don’t want to waste computer resources if your game needs less than 50FPS :slight_smile:

Okay … that actually makes sense now. 8-}