How to get the FPS in C++

Just calculate 1.0f / DeltaTime in the tick function of your Actor. DeltaTime is passed as a parameter to Tick.

If you are using a UObject then you can use multiple inheritance, inherit from FTickableGameObject too and override the corresponding methods.

Hi, guys,
I am a newbie at Unreal. I am trying to get the FPS by c++ and use the automation test to check the fps range. Which function should I use? I plan to to use 1.0f/Delta Time. Is the FApp::GetDeltaTime() is the right function? GetDeltaTime returned a huge number, I consider this is not the right one. Could you guys please help me about that?
Thanks

1 Like

Thx, it works!