# Is it possible to learn the accurate number of drawn triangles per frame with Nanite in Unreal Engine 5?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, Nanite, question\
**Created:** [May 31, 2023, 11:05am UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460 "2023-05-31T11:05:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![trezznor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trezznor](https://forums.unrealengine.com/u/trezznor)\
**Post date:** [May 31, 2023, 11:05am UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/1 "2023-05-31T11:05:18Z")

</div>

I’m using Unreal Engine 5.1. I have a scene comprising a grid of Nanite-enabled objects only (nothing else in the scene). The raw triangle count of the whole set of objects is about 2.3 billion. When I check the total number of instanced triangles (Sum Tris, the tooltip informs that it is the triangle count of all mesh occurrences), the Statistics window reports 26 million triangles no matter how the camera moves (i.e., regardless of objects in camera view). When I check Triangles Drawn (under RHI) in Profiler of Session Frontend, the average of a 10s camera movement in the grid is given to be a mere 580. I think this 580 doesn’t make any sense. And since the total number of instanced triangles is constant through the whole 10s camera move, it cannot be tied to the number of drawn triangles either. So how can I get the accurate number of drawn triangles per frame with Nanite in Unreal Engine 5?

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [May 31, 2023, 3:29pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/2 "2023-05-31T15:29:52Z")

</div>

> [@trezznor](#):
>
> the Statistics window reports 26 million triangles no matter how the camera moves

If you look at the sky (ie: no geometry on screen) then does the number of drawn triangles drop?

Nanite tries to keep the number of triangles consistent regardless of the number of objects on screen or their complexity.

---

<div class="post-metadata">

**Author:** ![trezznor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trezznor](https://forums.unrealengine.com/u/trezznor)\
**Post date:** [May 31, 2023, 6:26pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/3 "2023-05-31T18:26:41Z")

</div>

no the number remains the same

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [May 31, 2023, 6:41pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/4 "2023-05-31T18:41:17Z")

</div>

What “statistics window” are you looking at?

---

<div class="post-metadata">

**Author:** ![trezznor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trezznor](https://forums.unrealengine.com/u/trezznor)\
**Post date:** [May 31, 2023, 7:25pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/5 "2023-05-31T19:25:39Z")

</div>

The one that is opened from Tools \> Audit \> Statistics.  
Capture below

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/7/8171d649bad359e61b7328ea5e0e81d527767cde.png)

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [May 31, 2023, 7:27pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/6 "2023-05-31T19:27:34Z")

</div>

Yeah thats just asset statistics, it has nothing to do with whats being rendered. You need to be using the `NaniteStats` command.

---

<div class="post-metadata">

**Author:** ![trezznor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trezznor](https://forums.unrealengine.com/u/trezznor)\
**Post date:** [May 31, 2023, 7:32pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/7 "2023-05-31T19:32:09Z")

</div>

alright that’s great to know. Do you happen to know a general-purpose equivalent of this to see the number of drawn triangles per frame for/including stuff that are not Nanite?

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [May 31, 2023, 7:38pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/8 "2023-05-31T19:38:35Z")

</div>

The RHI stats should report the number of triangles drawn by the hardware rasterizer, and you can get more nanite stats about the shadow passes, see the console section of the docs: [Nanite Virtualized Geometry in Unreal Engine | Unreal Engine 5.0 Documentation](https://docs.unrealengine.com/5.0/en-US/nanite-virtualized-geometry-in-unreal-engine/#consolevariablesandcommands)

It’s generally a mess, because Nanite falls back to the hardware rasterizer for triangles that exceed a certain size. I don’t know that there is any way to filter by nanite/non-nanite triangles.

Can I ask why you need this information?

---

<div class="post-metadata">

**Author:** ![trezznor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trezznor](https://forums.unrealengine.com/u/trezznor)\
**Post date:** [May 31, 2023, 7:45pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/9 "2023-05-31T19:45:18Z")

</div>

It’s for a project where I am trying to see how my method compares to Nanite. I know it sounds kind of ambitious but actually I’m trying to see the amount of improvement when I use both methods.  
Actually to be able to get an accurate report, I need to have the average number of drawn triangles for a sample run (like for example 10s I mentioned above). Do you know how I can record/save Tris count from NaniteStats so that I can compute its average? OSD printout alone doesn’t help with that

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [May 31, 2023, 7:49pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/10 "2023-05-31T19:49:51Z")

</div>

> [@trezznor](#):
>
> Do you know how I can record/save Tris count from NaniteStats so that I can compute its average

Honestly no clue. You can try using [Unreal Insights to record a trace](https://docs.unrealengine.com/5.2/en-US/unreal-insights-in-unreal-engine/), but I don’t know how much detail it captures about rendering of the scene (it may only be limited to timing data… I’m not sure, haven’t worked with it)

---

<div class="post-metadata">

**Author:** ![trezznor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trezznor](https://forums.unrealengine.com/u/trezznor)\
**Post date:** [May 31, 2023, 7:52pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/11 "2023-05-31T19:52:11Z")

</div>

ok I guess I’ll have to take a couple screenshots and find an average using them to get an approximate. thanks for all the help

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 30, 2023, 7:52pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-learn-the-accurate-number-of-drawn-triangles-per-frame-with-nanite-in-unreal-engine-5/1184460/12 "2023-06-30T19:52:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
