Unreal Stat commands

Accessing stats in the Editor

Prysm’s heaviest computations are tracked using Unreal Engine’s stat commands. We have a whole separate category that you can access in the Editor:

Accessing stats in the developer console

You can also enable any of these stats through the console as well, for example when you’re profiling a packaged game (with auto-completion available too!):

Overview of Prysm stats

General stats

  • Stat Prysm - will display information about the time spent in advancing and painting the Views.
  • Stat PrysmCPUMemory - will display information about the total CPU memory usage and the memory used by each subsystem.
  • Stat PrysmRenderingCounters - will display the number of draw calls and rendering commands.

GPU stats

You can monitor various GPU resources that Prysm either manages or works with. These include buffers, Unreal textures and raw textures. For convenience, we’ve split these categories into their own total and peak variants helping you to track potential spikes.

For example, if you’d like to see grouped numbers of the total Prysm GPU stats, you could use the following combination:

  • Stat PrysmTotalGPUStats - will display information about the memory footprint from color and depth textures, as well as all the different buffers.
  • Stat PrysmTotalUserGPUStats - will display information about the memory footprint from render targets and Unreal textures.

If you’d like to isolate only buffer stats, these are the commands you could use:

  • Stat PrysmTotalIBufferStats - will display information for index buffers.
  • Stat PrysmTotalVBufferStats - will display information for vertex buffers.
  • Stat PrysmTotalCBufferStats - will display information for constant buffers.

Additional console commands

There are a few more console commands that can also be helpful for certain scenarios:

  • cohtml.list - lists the ID and document of all Views.
  • cohtml.reload [<id>] - reload the View with the specified <id> or all Views if no <id> is specified.
  • cohtml.redirect [<id>] <url> - change the page of the View with the specified <id> or all Views if no <id> is specified. The <url> must be surrounded by double quotes (e.g. "coui://uiresources/hud.html").
  • cohtml.debug [<id>] - toggles paint rectangles on the View with the specified <id> or all Views if no <id> is specified.
  • cohtml.track [<id>] - toggles whether the View with the specified <id> is tracked during stat Prysm and stat PrysmCounters. Only tracked Views are profiled with the stat commands. If no Views are explicitly profiled, we profile all Views. Don’t pass <id> to reset all tracking information.