Can I enable profiling in shipping build?

I want to implement a feature that shows CPU, GPU or Network stats to users in the game.

You can’t do that, it is specifically supposed to be used in the game debug state. Debugging tools can be quite heavy and is the reason for why they are outside of the shipping build. I think it is possible to expose the tools through changes in the engine code, but it would probably require a bit of work to enable. Why not just “release” the game with the debug build?

@anonymous_user_63a40806
I believe that the methods Unreal uses to gather the Performance profile are their own independent applications, that just run simultaneously to the Engine. I wouldn’t say it’s fully impossible but would take a lot of low-level programming to handle something like that, especially when the user could already have their computer’s stats showing.
Maybe a plugin has something you’re looking for?

Because I want to except consoles or other unuseful features. Actually, it would be best if there is a build flag that enable only profiling.

Thanks. I’ll take a look at the plugin.

1 Like