Packaged game will freeze with stat FPS command

Hi, I’ve packaged a game with the Shipping options and it was set in blueprints so pressing a certain key would toggle the showing of FPS (processing “Execute Console Comand” function with “stat fps”). It worked in PIE, Standalone, Packaged with Development, but it freezes the game in Shipping mode.

Also, pressing the console key in Shipping’s package will produce a small freeze or undesired pause.

So, how can I enable console commands stuff for Shipping? Or if not possible, how to show FPS through BP without using the comand function?

Any suggestions?

Any ideas? It’s not a problem with executing commands in general, I have another input key executing “Execute Console Comand” performing level restart without problems in the packaged game.

Hello,

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes. If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, could you please submit a new report for it.

Thank you.

Hello,

I tried to do the same thing - having a keyboard-button-event that executes a “stat FPS”-console command. When playing in editor, it works (fps-informations are toggled on or off), but when I package the project it freezes when I press the button.

I am using version 4.7.3-2479750.

Howdy Bernhard,

Thank you for the providing information on the freeze that you have been seeing. I have attempt a quick repro of the issue and have been unsuccessful in seeing any errors when binding Stat FPS and packaging. Would you be able to clarify if you are using a source build or binary build of UE4? Could you also attach your DXdiag to this post?

Are you building for Shipping or Development? Any additional information would be greatly appreciated.

Thanks and have a great day!

I’m having the same problem. Blueprint call to to console command “stat FPS” freezes the game. I’m using the binary build of 4.6.1. I would also like to know how to enable the console for shipping games.

Howdy all,

I was able to recreate the issue internally on 4.7.3. I have entered Jira report UE-13052 and placed this report into our Bug database so that the issue may be addressed in a future release.

For Shipping projects, console command has been disabled so that the end user will not be able to access that console. With Execute Console Commands, you can trigger commands, besides Stat FPS currently.

Thanks and have a great day!

Hi Albert (and Bernhard),

I’ve submitted a workaround for the issue you are experiencing, it should be present in the next engine release however if you need it sooner you can see the diff on github here, thanks.

Andrew