Number of rendered triangles

Hi!

I want to know how many triangles are being rendered per frame but I can’t find any way of doing it. There is a statistic in ‘stat engine’ that shows the number of triangles rendered but it does not account for tessellation. In Direct3D you can make a query using D3D11_QUERY_DATA_PIPELINE_STATISTICS to retrieve rendering statistics. The one I’m interested in would be CInvocations. Does anyone know if it’s possible to extract this value somehow? Has anyone attempted to modify the engine to retrieve these types of statistics? If not, does anyone have any idea where in the code base I should try to inject this type of a query? I’m not very familiar with the Unreal rendering engine.

Any help is appreciated!

Try “stat rhi”, that should give you the data you need :slight_smile:

Thanks for the suggestion but unfortunately I already tried that. It seems to give inaccurate data, toggling tessellation on and off does not affect the triangle count.