Hi, my game uses fixed FPS settings. And I need to get current FPS, but I’m unable to do so. No matter how low the real FPS is, I am getting DeltaTime of 0.016, or 60 FPS. If I use stat fps console command, then I see real FPS (for example 30 FPS).
How can I get real delta time no matter if my FPS is set to fixed in project settings? My project is C++ and BP. So any solution would be good.
OK so, I tried to get the DeltaTime from my widget. And it seems like widget and actors have different delta time in case of fixed FPS. Anyone knows how to get that real delta time from actors? In the image below, you can see results of printing the delta time from Tick() functions inside of Actor, and inside of UIWidget.
Unfortunately no. Actor delta time gives me always same value (again, it is highly imprtant, if you test it our yourself, to set Fixed FPS in project settings). No matter of the FPS. This is why I’m now stunned on how to get this one :D. Only way to get real DeltaTime is to take DeltaTime from tick() method inside of Widget, then it’s good. And I haven’t changed tick interval for the widget. I’m now trying to get the same for my Actors as I need it for online game (to know FPS difference between client and server), since my game has PVP online, it matters.