# T.array resize error 

**URL:** <https://forums.unrealengine.com/t/t-array-resize-error/2678172>\
**Category:** Rendering\
**Tags:** Lightmass, building-lighting, unreal-engine, Lighting, question\
**Created:** [November 24, 2025, 2:10pm UTC](https://forums.unrealengine.com/t/t-array-resize-error/2678172 "2025-11-24T14:10:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris457k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chris457k](https://forums.unrealengine.com/u/chris457k)\
**Post date:** [November 24, 2025, 2:10pm UTC](https://forums.unrealengine.com/t/t-array-resize-error/2678172/1 "2025-11-24T14:10:48Z")

</div>

**Project setup:**

- Map size: nearly 5 km

- Environment: Imported from Fab  
[https://www.fab.com/listings/35ca06cf-a124-44aa-b2ac-5b233223f3a2](https://www.fab.com/listings/35ca06cf-a124-44aa-b2ac-5b233223f3a2)

- Engine: UE 5.5 (no major changes to the environment after import)

- Scalability: High

**What I did:**

1. **Initial state (no World Partition):**

2. **Enabled World Partition** (the asset didn’t come with it enabled):

3. **Disabled some features for more performance:**

At this point, because I disabled Lumen, the level started showing **“Preview”** text on the floor/meshes. So I tried to **Build Lighting** , and that’s where the problems start.

When I click **Build → Build Lighting Only** , I immediately get this

 ![Screenshot 2025-11-24 164734](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/7/1272b8dccd16091dab09bb340012904219ba987c.png)

And after a few seconds, unreal crashes, and shows this

 ![Screenshot 2025-11-24 164215](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/9/aa934afd9e8efbacb17538aa94425a4df2f9694f.png)

I searched for some time and didn’t find any answers, so I packaged the game. Remember when I said I’m getting 70-80 fps in the editor? Now, strangely in the packaged game I’m getting 30-40 fps. Is it because I didn’t build lighting? (I don’t see the preview text, and in standalone mode I get 80-90fps)

I’m a beginner and don’t know much yet. For now, I mainly want to fix the TArray crash and get my packaged build running with the same performance as in the editor.

- Thank you

---

<div class="post-metadata">

**Author:** ![brs-sebascova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs-sebascova/32/1052483_2.png) [@brs-sebascova](https://forums.unrealengine.com/u/brs-sebascova)\
**Post date:** [November 24, 2025, 6:16pm UTC](https://forums.unrealengine.com/t/t-array-resize-error/2678172/2 "2025-11-24T18:16:54Z")

</div>

Hello there @chris457k !

Welcome to UE! You are tackling quite a challenge for starting up, so let’s see if we can figure out what’s going on. The error you are getting from the crash, with TArray blowing up to +2GBs, is most likely due Lumen being disabled.

Since Lumen is off, UE defaults back to static lights, and when covering a 5km area, filled with lots of meshes and landscape features, trying to build lighting for all that, is definitely going to tank your setup. You could try reducing lightmap resolution across all affected meshes, but the most efficient approach would be to re-enable Lumen, specially when dealing with such a large area, plus World Partition on top, which works best with dynamic lighting.

As for further improving your project’s performance, since you are getting started with UE, I would recommend working with the community docs on the matter. The links below cover a bit of everything, open world guides, performance optimization, Lumen and material workflows, among other topics. Hope this helps, and good luck!

> **[Introduction to Performance Profiling and Configuration in Unreal Engine |...](https://dev.epicgames.com/documentation/en-us/unreal-engine/introduction-to-performance-profiling-and-configuration-in-unreal-engine)**
>
> Learn about the tools and techniques you can use to profile and fine-tune your application's performance.

> **[Unreal Insights in Unreal Engine | Unreal Engine 5.7 Documentation | Epic...](https://dev.epicgames.com/documentation/en-us/unreal-engine/unreal-insights-in-unreal-engine)**
>
> Profile your project's performance with Unreal Insights.

> **[World Building Guide | Knowledge base](https://dev.epicgames.com/community/learning/knowledge-base/r6wl/unreal-engine-world-building-guide)**
>
> This guide provides per-feature definitions, subjects to master, good practices and pitfalls, limitations, use cases specific to world building with Unr...

> **[World Partition in Unreal Engine | Unreal Engine 5.7 Documentation | Epic...](https://dev.epicgames.com/documentation/en-us/unreal-engine/world-partition-in-unreal-engine)**
>
> An overview of the World Partition system and how to use it in your projects in Unreal Engine.

> **[Lumen Performance Guide for Unreal Engine | Unreal Engine 5.7 Documentation |...](https://dev.epicgames.com/documentation/en-us/unreal-engine/lumen-performance-guide-for-unreal-engine)**
>
> A guide for understanding Lumen's scalability options in Unreal Engine.

> **[Efficient materials for large worlds | Tutorial](https://dev.epicgames.com/community/learning/tutorials/DdzL/unreal-engine-fortnite-efficient-materials-for-large-worlds)**
>
> Improve the precision and performance of your materials with this one simple trick!
