How to use Nanite in Unreal Engine 5

Performance of Nanite in Unreal Engine 5

Unreal Engine 5 brings Nanite, the virtualized geometry system. Nanite allows all Unreal Engine 5 projects to have large amounts of detailed meshes on the screen with great performance. Draw calls and poly count concerns are a thing of the past!

Nanite also has automatic level of detail for all meshes which improves performance on a range of different devices!

In this guide we will be showing you how to enable Nanite support on your meshes in the editor.

Enabling Nanite on your Meshes

First, open your mesh in the editor. As you can see in the image below, this Megascans mesh has 1 million triangles!

Click here to read our guide on using free Quixel Megascans assets in Unreal Engine 5

Megascans rock mesh with 1 million triangles.

Next, on the right side of the editor you can see the details panel. In the “Nanite Settings” section you should see all of the settings related to Nanite functionality for this mesh.

Details panel with the nanite settings

From there, to enable Nanite for this mesh, tick the “Enable Nanite Support” box and click the “Apply Changes” button.

For most meshes you can leave the settings at their default values.

Enabling nanite support and applying changes to the mesh

Lastly, after applying the changes we can see “Triangles: 999,999” has changes to “Nanite Triangles: 999,999”.

This means our mesh now is handled and rendered by Nanite!

Text updated to show 1 million nanite optimized triangles

Comparison

Finally, we will compare the same scene with Nanite disabled and with Nanite enabled.

The first image below shows hundreds of rock meshes before nanite was enabled. The framerate stayed between 6 and 9 frames per second. Having many meshes on screen at once without Nanite makes the game unplayable.

Very slow performance in engine rendering many non nanite meshes
The image below shows the same scene but with Nanite enabled.

Now we are getting over 80 frames per second! Our project is no longer limited by how many triangles we have in our detailed meshes.
Great performance in the same scene once Nanite is enabled for the mesh.

Conclusion

Your meshes are now setup and are now rendered using Nanite!

From our results you can clearly see huge performance improvements with all of your meshes by following these easy steps.

To learn more about Nanite we recommend these links to official Unreal Engine 5 resources.
Nanite Overview: https://docs.unrealengine.com/5.0/en-US/nanite-virtualized-geometry-in-unreal-engine/
Nanite demonstration video: https://www.youtube.com/watch?v=xUUSsXswyZM

Be the first to comment

Leave a Reply

Your email address will not be published.


*