FIX Your Crashing Renders (GPU and D3D Device Removed Crash) - Unreal Engine 4.26

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
crashes we've all had them anyone working on real long enough has had this jerk show up it happens without fail when you're about to wrap up a personal project you've been working on for months or you're in the middle of production and you have a delivery by end of day you think you're almost done and then to which of course the only reasonable rational reaction is or i need another coffee so what do you do wallow in despair and self-pity yeah that sounds like something i would do but after that don't panic there's a lot of things you can do to remedy this problem so the first thing you're going to want to do is narrow down the source of the problem open up the task manager go to the performance tab up top and click on gpu keep an eye on dedicated gpu memory usage in 99.9 of cases this crash has to do with your graphics card's memory also known as vram okay as an artist you can never ever have enough vram there's there's a reason why cards like the rtx 3090 are so expensive and hard to find is because that vram is priceless to artists like you and me so before you start renders in unreal just make sure you close any gpu intensive apps like close all your gpu intensive programs you're running games in the background if you're running two instances of unreal close that you have a chrome open with 75 million tabs open i'm looking at you howie closed captioning not but this available keep the task manager open on the second display you're going to want to keep an eye on the graphs of the dedicated gpu memory usage here when you start a render and if you've crashed before chances are you're really topping off your gpu vram okay to keep an eye on that curve and you'll see it kind of just like creeps all the way up to the top that's usually a sign that hey you're using too much vram okay it's causing unreal to crash that is the source of your problem like i said in 99.9 of the case that i've had encountered this error it's been because of this so what do you do you know you close all the apps in the background and unreal is still crashing so first off if you happen to be using the screen percentage console command in your render so if you're super sampling your renders you've got r dot screen percentage set to 200 or something you're going to want to tone that down okay so bring it back to 100 just to see if its renders are still crashing and if you're not using this console command then i recommend tone down the resolution so let's say you're rendering in 4k just render in hd just to see what happens there in many cases turning down your resolution is going to get rid of this crash what is likely happening is at lower resolutions it's running fine and when you crank up the resolution something like 4k issues start showing up because it demands a lot of vram it becomes a problem now how much vram do you actually need the simple answer is you can never have too much right if i if i got a graphics card with 128 gigs of vram i would grab it in the heartbeat i'm running with a rtx 2060 super that has 8 gigs of vram personally i wouldn't recommend anyone to work with anything less than 8. 12 is not too much 24 is not too much but less than 8 start being very problematic especially if you're trying to render in 4k i honestly don't think you're gonna be able to pull it off so if you're using a graphic an older graphics card that has four or six gigs of vram you might want to consider an upgrade now i hate suggesting hardware as a fixed software issue just upgrade your computer problem solve i understand it's a lazy solution but i'm going to be totally honest with you in this case if you have less than 8 gigs of vram you're not going to have a good time so consider the 8 gig minimum so often toning down your resolution it's going to help you a lot what you can do is use the r dot screen percentage console command and instead of setting a number like 100 or over 100 you can under sample your renders as well you can set that to 50. so the renderer is all automatically going to cut your resolution in half by 50 this can work for a lot of people this is not an ideal solution but it does help you kind of figure out where your issues are lying so let's say for example you kind of figured out that you know rendering in 4k with the problem but everything works fine in hd but for your project you need 4k dlss may be the solution to your issue now nvidia finally released support for dlss in unreal engine dlss is essentially ai upscaling so your scene's actually going to be rendered in 1080p but with the aid of machine learning it's going to upscale it to 4k with pretty darn good results so take this with a grain of salt i haven't actually tried dlss myself yet in unreal i don't even know if it works with the movie render queue so just keep that in mind i just figured it's worth mentioning in case you want to try it out yourself so i've had a lot of people ask me questions about this crashing issue and a suggestion i often give them is this one turn on virtual texturing virtual texturing is a way to allow unreal to reduce its memory usage while simultaneously allowing larger resolution textures it's basically magic i'm not going to get into the nitty-gritty details of it but it's a pretty magical solution i'm not gonna lie to enable virtual texturing you're gonna wanna go to the edit tab up top go to your project settings in the search bar you're gonna type virtual and scroll down a little bit and you'll see the enable virtual texture support make sure this checkbox is checked okay restart your engine and try rendering one more time chances are this will solve your issue it's worked for me and it works for many others i suggested this trick to so definitely try that so just a quick recap first thing you can do is don't close any background applications on your computer keep an eye on the task manager check out that gpu memory usage graph try toning down your resolution just to see if that's the source of your problem turn on virtual texturing support if you don't have enough vram in your graphics card consider getting a better graphics card now i know they're incredibly hard to find nowadays and they are wildly overpriced but you know if you get your hands on a better card it's worth it and last this is not really a trick but maybe your scene is just too heavy maybe your textures are way too big if you brought in some 8k textures from mega scans chances are that is like way way overkill of course depending on your shot right you got a hero shot an extreme close-up yeah you're gonna need some higher resolution textures but for the most part for anything that's in a mid and background 2k is often more than enough when you're bringing in mega scan stuff so keep that in mind and that's it that's really all you need to do if all of those things still didn't work then i'm really not sure what to tell you you may have to check your scene there's maybe something in your in your level that's you know crashing your renders it could be some corrupt blueprint or something but these tricks here should really help you out with this error message so i just want to say thank you so much for watching i'm super appreciative of all the support you've given me since the very start of this channel don't forget to like and subscribe and i'll see you next week
Info
Channel: William Faucher
Views: 142,840
Rating: undefined out of 5
Keywords: UE4, Unreal Engine 4, Unreal Engine, Cinematics, 4.26, UE4 4.26, UE5, Realtime, realtime rendering, rendering, CGI, 3D, 3D Artist, D3D, crash, device removed, GPU crash, render
Id: CRnd513xWLk
Channel Id: undefined
Length: 7min 37sec (457 seconds)
Published: Wed Mar 03 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.