# Crash - out of video memory

**URL:** <https://forums.unrealengine.com/t/crash-out-of-video-memory/236384>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine, UE5-0\
**Created:** [June 20, 2021, 9:26am UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384 "2021-06-20T09:26:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [June 20, 2021, 9:26am UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/1 "2021-06-20T09:26:21Z")

</div>

I was hoping this will go away with ue5 but no, same problem as in ue4: when working on my laptop there’s 100% chance of editor crashing eventually with this error. Sometimes happens after an hour or two, sometimes after 15 minutes. Screen flickers black and my unsaved work is gone.  
It’s really annoying.

I’ve read somewhere that unsaved changes are stored in video memory and cleared when saved to disk but that doesn’t make much sense, does it?

Anyways my laptop has 16 gigs of ram, gpu has 4. This problem never happens on my ‘better’ stationary rig. Is there a way around it?

---

<div class="post-metadata">

**Author:** ![VinceCarter24](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VinceCarter24](https://forums.unrealengine.com/u/VinceCarter24)\
**Post date:** [June 20, 2021, 11:06am UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/2 "2021-06-20T11:06:19Z")

</div>

Unreal crashes when your GPU is out of VRAM.  
Go to Task Manager. Performance. GPU and look at Dedicated GPU Memory.  
It fills your memory with textures when you open a level and doesn’t unload it. There is no garbage collection in Unreal Editor. Only way to free up your vram is by closing Unreal and restarting.

---

<div class="post-metadata">

**Author:** ![didel23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@didel23](https://forums.unrealengine.com/u/didel23)\
**Post date:** [June 20, 2021, 12:12pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/3 "2021-06-20T12:12:25Z")

</div>

turn on texture streaming

---

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [June 20, 2021, 1:20pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/4 "2021-06-20T13:20:05Z")

</div>

is enabled

---

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [June 20, 2021, 1:25pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/5 "2021-06-20T13:25:31Z")

</div>

> [@VinceCarter24](#):
>
> Unreal crashes when your GPU is out of VRAM.  
> Go to Task Manager. Performance. GPU and look at Dedicated GPU Memory.  
> It fills your memory with textures when you open a level and doesn’t unload it. There is no garbage collection in Unreal Editor. Only way to free up your vram is by closing Unreal and restarting.

ok, I wonder if there’s a setting that would load them at lower resolution in editor (but not the one that limits texture size per asset…)

---

<div class="post-metadata">

**Author:** ![ixicalibur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ixicalibur](https://forums.unrealengine.com/u/ixicalibur)\
**Post date:** [June 20, 2021, 2:17pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/6 "2021-06-20T14:17:32Z")

</div>

Navigate to (EngineInstallPath)\Engine\Config\ConsoleVariables.ini  
open and on a new line enter:  
r.MipMapLODBias=5  
save and close, launch the editor.  
This will execute the command every time you open the editor, the command tells UE4/5 to use a lower MipMap. Because its a bias, it will lower any texture by 5 MipMaps regardless of its size, 8K will go to 512, 2k to 64 etc, you can choose a different number to go up or down sizes.  
To return to normal, just run the command in editor r.MipMapLODBias -1 or other numbers to view other bias, max is 14.  
Do note the difference between the .ini vs the in-editor commands, ini uses an = sign, in editor uses a space.  
As for unchanged saves affecting video ram, it has to keep those changes somewhere, and textures are stored in VRAM. If your base game has say 3.7GB VRAM usage needed, and you change 300mb+ worth of data, it will crash.

---

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [June 20, 2021, 4:15pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/7 "2021-06-20T16:15:31Z")

</div>

ok, thanks, I will try that

---

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [June 20, 2021, 4:38pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/8 "2021-06-20T16:38:15Z")

</div>

> [@ixicalibur](#):
>
> r.MipMapLODBias=5

nope ☹ everything is blurred as expected but still crashes and task manager indicates same vram usage regardless of setting

---

<div class="post-metadata">

**Author:** ![ixicalibur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ixicalibur](https://forums.unrealengine.com/u/ixicalibur)\
**Post date:** [June 20, 2021, 5:37pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/9 "2021-06-20T17:37:25Z")

</div>

That’s odd, I use it to have low MIPS while editing and normal MIPS while playing and it works fine, changed on event begin and end play.

Mine goes from 4.8Gb to 6.5Gb. (shown in the black windows.)

You could just clamp the max texture size in the INIs, change everything I have selected in the file to say 2048 or lower.

 ![2021-06-21 02_34_25-Greenshot](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/c/fc8c9e7d39a5e0a73a9d61e8a21e32d723aa692c.jpeg)  
 ![2021-06-21 02_36_21-Greenshot](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/3/239efa039574bf0fa7ce9fef9d9ace9adb8e5e5a.jpeg)  
 ![2021-06-21 02_57_41-NVIDIA GeForce Overlay](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/1/d143ff0df9ea03a149695f77fd33ed3480796da3.jpeg)

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [June 28, 2021, 3:13am UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/10 "2021-06-28T03:13:10Z")

</div>

I get this error any time i try to build reflection captures for my level. I do not know why… I literally have 2 RTX 3090s in NVLink… 24gb of ram each… Makes no sense since this project and its levle used to build in much older versions of UE4. Now its not a lightmap related bug… its a reflection capture build bug. What worries me is other people have complained about this even in 4.25… and no fix. Im thiinking the epic devs are more focused on new features then they are making their editor useable. Plus their new bug reporting system that replaced “Answers Unreal” … You cant add to the bug what you have learned about it… if you report it.

---

<div class="post-metadata">

**Author:** ![didel23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@didel23](https://forums.unrealengine.com/u/didel23)\
**Post date:** [June 28, 2021, 6:14am UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/11 "2021-06-28T06:14:28Z")

</div>

disable one of the videocards… its a driver issue… it has been reported a bunch

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [July 4, 2021, 7:33pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/12 "2021-07-04T19:33:53Z")

</div>

how do you disable a video card? Seems silly.

---

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [July 18, 2021, 1:54pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/13 "2021-07-18T13:54:31Z")

</div>

Disabling card seems to work, unfortunately I had to disable dedicated one, unreal is really choppy on integrated but when I tried disabling integrated then whole system went choppy instead.

---

<div class="post-metadata">

**Author:** ![gozu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gozu/32/869945_2.png) [@gozu](https://forums.unrealengine.com/u/gozu)\
**Post date:** [July 19, 2021, 2:30am UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/14 "2021-07-19T02:30:56Z")

</div>

I’ve seen this error quite a bit working with UE4 with very large worlds, particularly when working with landscapes.

This sounds silly, but setting a fixed size on my page file seemed to resolve it for me (i only have 1 vid card)

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [July 19, 2021, 5:45pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/15 "2021-07-19T17:45:59Z")

</div>

Unfortunately this out of video memory error happens with 1 card and 2 cards… It is still occuring on unreal engine 4.27 beta… So… out of luck.

---

<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:** [August 30, 2021, 4:09pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/16 "2021-08-30T16:09:11Z")

</div>

This user has a laptop and was having problems that were linked to the size of the pagefile.sys  
[“Checking global shaders for platform Windows” stuck forever - Unreal Engine 5 Early Access / Feedback for Unreal Engine 5 Early Access - Unreal Engine Forums](https://forums.unrealengine.com/t/checking-global-shaders-for-platform-windows-stuck-forever/233326/5)

There is a great explanation of GPU workings in [Video memory has been exhausted - Development Discussion / Unreal Engine 5 Early Access - Unreal Engine Forums](https://forums.unrealengine.com/t/video-memory-has-been-exhausted/247164/5)

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [August 30, 2021, 5:04pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/17 "2021-08-30T17:04:22Z")

</div>

If you’re on a laptop make sure you’re not using the integrated GPU, you can disable it in the Nvidia control panel under 3D settings. Also, make sure your laptop is plugged in, performance is often throttled when you’re on battery.

---

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [August 31, 2021, 6:25am UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/18 "2021-08-31T06:25:32Z")

</div>

actually working on integrated gpu prevents the crash in my case

---

<div class="post-metadata">

**Author:** ![hedgie17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hedgie17](https://forums.unrealengine.com/u/hedgie17)\
**Post date:** [September 14, 2021, 5:12pm UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/19 "2021-09-14T17:12:58Z")

</div>

In that case it sounds more like an issue with the video card manufacturer? Best to create a ticket with them and provide the crash report (event viewer) along with your DX info. There’s no guarantee they will fix it but at least it’ll be out there.

---

<div class="post-metadata">

**Author:** ![zinabzenbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zinabzenbe](https://forums.unrealengine.com/u/zinabzenbe)\
**Post date:** [July 6, 2024, 2:38am UTC](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384/20 "2024-07-06T02:38:26Z")

</div>

Good ■■■■, just saved me a whole bunch of time. I have 20 models in there, slowing my ■■■■ up and even though I deleted them, it was still slow. The solution is saved the original file and then save the file with the models I want to render and then restart unreal, engine and open the file with just the models I want to render

[Next page](https://forums.unrealengine.com/t/crash-out-of-video-memory/236384.md?page=2)
