# Can´t enable nanite for more than 12287 assets

**URL:** <https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine, Nanite\
**Created:** [September 20, 2021, 7:17pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793 "2021-09-20T19:17:41Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardo.zimmerma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ricardo.zimmerma](https://forums.unrealengine.com/u/ricardo.zimmerma)\
**Post date:** [September 20, 2021, 7:17pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/1 "2021-09-20T19:17:41Z")

</div>

Hello, I am trying to create a 4D construction simulation on UE5 using nanite because of revit’s large model. I can enable nanite on exactly 12287 assets, but when I try to enable on one more asset, unreal crashes

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/b/8b0785316e1369d8f4d926e902dcff553926ab52.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/0/c0893900dc8adfb3e58fd17fee59f6db7bf147bd.png)  
Error:  
Assertion failed: NumAllocatedRootPages \>= (uint32)RootPages.Allocator.GetMaxSize() [File:D:/build/++UE5/Sync/Engine/Source/Runtime/Engine/Private/Rendering/NaniteStreamingManager.cpp] [Line: 1108]

Dropbox link to my datasmith file:

> **[CENTRAL\_MODEL\_AUDAX\_MARCELO\_E\_BEA\_BRAND\_NEW\_ricar-3DView-{3D\_-\_ricar}.udatasmith](https://www.dropbox.com/s/ccmwzcyfxmg2xgp/CENTRAL_MODEL_AUDAX_MARCELO_E_BEA_BRAND_NEW_ricar-3DView-%7B3D_-_ricar%7D.udatasmith?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

**Author:** ![dyanikoglu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dyanikoglu/32/1008648_2.png) [@dyanikoglu](https://forums.unrealengine.com/u/dyanikoglu)\
**Post date:** [September 21, 2021, 5:48am UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/2 "2021-09-21T05:48:49Z")

</div>

I remember nanite had a few millions of triangle limit, which was denoted in docs. You may be hitting that limit.

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [September 21, 2021, 12:43pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/3 "2021-09-21T12:43:18Z")

</div>

Hi @ricardo.zimmerma , @dyanikoglu, @fw190a8 anyone who is investigating. In the latest post.

The original any my other answers are no longer valid

[Can´t enable nanite for more than 12287 assets post 10 SOLVED](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/10)

---

<div class="post-metadata">

**Author:** ![ricardo.zimmerma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ricardo.zimmerma](https://forums.unrealengine.com/u/ricardo.zimmerma)\
**Post date:** [September 23, 2021, 3:21pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/4 "2021-09-23T15:21:04Z")

</div>

Hi @Jimbohalo10 ,  
Thanks for your reply. I felt really dumb reading it as I didn’t understand very much. I have a revit/bim/dynamo background and only now I’m starting to adventure myself in the land of unreal.  
My datasmith file is directly imported from revit, so I don’t really understand those errors.  
Can you please explain better, if not asking too much?  
My pc specs are:  
CPU Ryzen 3900x  
GPU RTX 3070 Vision  
Memory 32 gb 3600mhz cl17  
Windows 64 bits  
1tb ssd mp600

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [September 23, 2021, 5:25pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/5 "2021-09-23T17:25:28Z")

</div>

HI @ricardo.zimmerma,  
see the solved post [Can´t enable nanite for more than 12287 assets to see POST 10 SOLVED](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/10)

Even though your PC is much better spec than my PC still think you will need a 64 Gigabyte page file as Unreal 5 is such a hungry resource

I documented the installation of the pagefile.sys  
[Install windows 10 pagefile.sys](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169/2)

---

<div class="post-metadata">

**Author:** ![ricardo.zimmerma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ricardo.zimmerma](https://forums.unrealengine.com/u/ricardo.zimmerma)\
**Post date:** [September 23, 2021, 6:52pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/6 "2021-09-23T18:52:07Z")

</div>

Hi @Jimbohalo10 , thanks again for replying…  
I’ve allocated 64gb of virtual memory.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/d/bd19da56298249d18a033c1eb005a81d1a839b3d.png)  
After restarting my pc I’ve managed to enable nanite on a few more assets but after 100~ assets, unreal crashed again and now I can’t even open the project anymore 😅  
Any more ideas, please?

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [September 23, 2021, 7:19pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/7 "2021-09-23T19:19:50Z")

</div>

Hi @ricardo.zimmerma,

They had a similar problem in another post  
[Assertion failed - WorldPartition error on startup](https://forums.unrealengine.com/t/assertion-failed-worldpartition-error-on-startup/234426/5)

---

<div class="post-metadata">

**Author:** ![ricardo.zimmerma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ricardo.zimmerma](https://forums.unrealengine.com/u/ricardo.zimmerma)\
**Post date:** [September 23, 2021, 7:42pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/8 "2021-09-23T19:42:10Z")

</div>

Hi @Jimbohalo10,  
the topic you mentioned was about restoring a broken project, right?  
I don’t need to restore the project as I’ve tried to open in a blank template and got the same results.  
My problem is that I can’t enable nanite on all assets and therefore I’m having massive fps drops because of the dense model

---

<div class="post-metadata">

**Author:** ![fw190a8](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fw190a8/32/88706_2.png) [@fw190a8](https://forums.unrealengine.com/u/fw190a8)\
**Post date:** [September 23, 2021, 8:39pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/9 "2021-09-23T20:39:21Z")

</div>

It’s a slightly different issue Jim although the errors do look very similar! Just in case anyone uses these threads in the future, I thought I’d just post to confirm that they’re not related! 🙂

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [December 19, 2021, 1:15pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/10 "2021-12-19T13:15:49Z")

</div>

Hi @ricardo.zimmerma,  
Well after a lot of investigation in the source code for UE5 I found how to fix this .  
This is my log of Datasmith import  
LogLayoutUV: FindBestPacking (Total Time: 0 ms, Avg Efficiency: -nan(ind))  
LogUObjectHash: Compacting FUObjectHashTables data took 27.69ms

> \*_**LogDatasmithImport: Imported CENTRAL\_MODEL\_AUDAX\_MARCELO\_E\_BEA\_BRAND\_NEW\_ricar-3DView-3D-ricar in [0 min 31.646 s] [Private Bytes: 4.34 GB, Working Set 3.43 GB, Peak Working Set 3.51 GB]**_

LogShaderCompilers: Display: === FShaderJobCache stats ===  
LogShaderCompilers: Display: Total job queries 917, among them cache hits 0 (0.00%)  
LogShaderCompilers: Display: Tracking 763 distinct input hashes that result in 587 distinct outputs (76.93%)  
LogShaderCompilers: Display: RAM used: 2.15 MB (0.00 GB) of 819.20 MB (0.80 GB) budget. Usage: 0.26%  
LogShaderCompilers: Display: ================================================

In the UE5 Project start-up log we now have

> LogConfig: Applying CVar settings from Section [/Script/Engine.RendererSettings] File [Engine]  
> LogConfig: Setting CVar [[r.GPUCrashDebugging:0]]  
> _LogConfig: Setting CVar [[r.Nanite.Streaming.NumInitialRootPages:4096]]_

The added line in C:\Users\Owner\source\repos\UE50\Engine\Config  
BaseEngine.ini  
in section [/Script/Engine.RendererSettings]

[/Script/Engine.RendererSettings]  
r.GPUCrashDebugging=false  
;@VS2022 Added line increase r.Nanite.Streaming.NumInitialRootPages double from 2048

> _r.Nanite.Streaming.NumInitialRootPages=4096_

Restart UE5 Editor again and new project → new level Add DataSmith Plugins  
then import the file

 ![Screenshot (134)](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/d/fdc55ef626d2ff7503c870251fc46ba8f7e8e821.png)

So there it’s imported, there does not appear to be any lighting though?

---

<div class="post-metadata">

**Author:** ![ricardo.zimmerma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ricardo.zimmerma](https://forums.unrealengine.com/u/ricardo.zimmerma)\
**Post date:** [January 24, 2022, 7:12pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/11 "2022-01-24T19:12:36Z")

</div>

Hello @Jimbohalo10 , thank you for your response.  
I’ve added the line on the file but without success, maybe(probably) I am missing something.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/7/4706a97f30d5c7660b9b1d0f38373aa4a79ecace.png)  
Can you help me go deeper? 😰

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [January 25, 2022, 12:44pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/12 "2022-01-25T12:44:58Z")

</div>

@ricardo.zimmerma, I know what’s wrong now I followed the Lighting documentation page and when you add light you need to keep doubling until all the nanite elements are loaded into your picture because I am missing lots of static meshes.

Looking at the code this may mean 2048 \* 16 or higher = 32,768  
even higher is 2048 \* 32 = 65,536 this is the maximum for an signed 16bit integer.

Could try 131072 which would be the top for an unsigned 32-bit integer

> r.Nanite.Streaming.NumInitialRootPages=131072

You will have a big 64GB pagefile.sys like me to load all this. This would imply the number of Nanite.Streaming pages is not increasing and has to be set at the start.

May be you will only need this during and import conversion

The source code does not document this as supposed may be secret to Epic at the moment

---

<div class="post-metadata">

**Author:** ![ricardo.zimmerma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ricardo.zimmerma](https://forums.unrealengine.com/u/ricardo.zimmerma)\
**Post date:** [January 25, 2022, 7:06pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/13 "2022-01-25T19:06:17Z")

</div>

Hi again @Jimbohalo10 ,  
I’ve tried to import the datasmith file without lights and still crashed on 12288 assets.  
Maybe I’m not understanding you well.  
Do you think I need to allocate virtual memory again?  
Also, building UE5.1 from source would fix the issue?  
So many questions(sorry), but I’m really struggling with this.

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [January 27, 2022, 7:34pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/14 "2022-01-27T19:34:16Z")

</div>

> [@Jimbohalo10](#):
>
> r.Nanite.Streaming.NumInitialRootPages=131072

You will need to try with the MAXIMUM value  
also to add 64GB virtual emory.  
You can add this using [How to add a larger page file use 64GB](https://forums.unrealengine.com/t/cant-create-c-project-or-use-c/238169/2)

UPDATE have you seen/tried

> r.Nanite.Streaming.StreamingPoolSize=4096

The initial value is 512 which is 🤣small!!

---

<div class="post-metadata">

**Author:** ![ricardo.zimmerma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ricardo.zimmerma](https://forums.unrealengine.com/u/ricardo.zimmerma)\
**Post date:** [February 1, 2022, 3:59pm UTC](https://forums.unrealengine.com/t/can-t-enable-nanite-for-more-than-12287-assets/251793/15 "2022-02-01T15:59:11Z")

</div>

[UPDATE]  
After building the newest version from source I could add more than the original maximum number of assets(12287). After copying some assets I was able to have 14k+ assets with nanite enabled…  
It seems that they fixed the issue. After some more tests I’ll update the topic.
