Output frames per second to test map

dave.tyner
Alumni
Alumni

Output frames per second to test map

dave.tyner
Alumni
Alumni

Hi, I am working with a very large (10 square miles) scene. I am trying to get an idea of how each imported object is effecting my performance. I know I can run the application.statistics command to see the FPS in the console. How can I continuously display only the FPS stats on my test level? Thanks!

Reply
Reply
0 Likes
Reply
Accepted solutions (1)
905 Views
7 Replies
Replies (7)

dan.matlack
Alumni
Alumni
Accepted solution
You can use "perfhud artist" to show fps. I'm not sure we have a command to show only the FPS. I will look into it. For now, you could just run Fraps when running your game, it will show FPS in the corner window.
______________________________________
Dan Matlack
Senior Content Manager || Games Solutions
Autodesk, Inc.
Reply
Reply

dave.tyner
Alumni
Alumni

Fantastic, thank you Dan!

Reply
Reply
0 Likes

mmartin256
Enthusiast
Enthusiast

Is it possible to show a performance overview in a deployed executable (windows platform)?

Reply
Reply
0 Likes

dan.matlack
Alumni
Alumni
I'm not sure as I've never tried that specifically. I will ask the engine team. The perfhud may be wrapped up in engine code and not specific to your deployed project. You can of course always write your own inside your project to be printed to screen at your discretion.
______________________________________
Dan Matlack
Senior Content Manager || Games Solutions
Autodesk, Inc.
Reply
Reply
0 Likes

dan.matlack
Alumni
Alumni
Re perfhud: As long as you are running a debug or development (dev) compiled executable the perfhud will work on all targets. They will only show meaningful GPU timings on PC & consoles though.
______________________________________
Dan Matlack
Senior Content Manager || Games Solutions
Autodesk, Inc.
Reply
Reply
0 Likes

mmartin256
Enthusiast
Enthusiast

Excellent, how will i access that when running? or is i something I need to set up before I export?

Reply
Reply
0 Likes

dan.matlack
Alumni
Alumni

@mmartin256 You will need to write a custom flow node or put this in lua and then call it on a key press, or all the time, in your compiled executable:

 

s3d.Application.console_command("perfhud", "artist")
______________________________________
Dan Matlack
Senior Content Manager || Games Solutions
Autodesk, Inc.
Reply
Reply
0 Likes