How to show FPS ingame?
It's possible to show FPS on mobile iOS/Android?
1) Open Level Blueprint from toolbar
2) Add function 'Execute Console Command'
3) Enter 'stat FPS' in 'Command' field
4) Attach 'Event Begin Play' to 'Execute Console Command'
5) Click 'Compile' in toolbar
6) Run on device
As a Console Command At Level Start
'stat unit' may be also useful. This will show game and render thread times.
answered Mar 24 '14 at 03:49 PM
I did not find the standard function to get the frame rate in C++ so I get them this way:
Tick execute in second so many times how many frames per second is displayed, so you can count how many times was called tick per second using a timer.
answered Jul 02 '15 at 03:51 PM
You can get stat fps data directly from engine. It stores in global engine variables GAverageFPS and GAverageMS (defined in UnrealEngine.cpp for use with extern). It calculates every engine tick by the next algorithm:
I'm looking now for a stock functionality to get it in blueprint, but if there is no such, you can create yours. Example:
Follow this question
Once you sign in you will be able to subscribe for any updates here