How to Fix Dragon Age The Veilguard DirectX Function Error (DXGI ERROR DEVICE REMOVED/DXGI ERROR DEVICE HUNG)

If you are getting DirectX Function Error DXGI_ERROR_DEVICE_REMOVED or DXGI_ERROR_DEVICE_HUNG while playing Dragon Age The Veilguard you might as well take it as a sign to stop playing the game! (It's terrible) But! If you really want to put yourself through that horrendous experience we'll make sure that you can by showing you how to fix this super annoying and quite common DirectX error message. Thankfully it's just a shader caching issue so won't take too long to fix.

How to Fix Dragon Age The Veilguard DirectX Function Error (DXGI ERROR DEVICE REMOVED/DXGI ERROR DEVICE HUNG)

99% of the time this error message is a simple shader caching issue. Essentially some kind of minor corruption, so you'll need to clear your cache to solve the problem. Once you have cleared the cache it will redownload and process and start working. The easiest way to find the file to delete is to do the following.

Now Increase your Shader Cache Size (NVIDIA Control Panel)

Why Is Increasing the Shader Cache Size Important?

Increasing the shader cache size helps your GPU manage a larger number of compiled shaders without constantly purging older data. This is particularly useful for modern, graphically demanding games that use extensive shader operations to create detailed environments and effects. When the shader cache is too small, your system might constantly delete and recompile shaders, leading to delays or errors. By setting the cache size to 10GB or even 100GB, you ensure that the GPU can store enough compiled shaders to maintain consistent performance and stability.

Understanding Shaders

To fully grasp why clearing and increasing shader cache size can prevent these DirectX errors, it’s helpful to understand what shaders are and why they matter.

Shaders are small programs that run on the GPU and are responsible for rendering graphics and effects in games and 3D applications. They handle everything from calculating light and shadow to rendering complex textures and particle effects. There are several types of shaders, with the most common being

Vertex Shaders: Modify vertex data to control how 3D objects are transformed and positioned on the screen.

When you play a game, the GPU compiles these shader programs in real time and stores them in a cache for quick access. This allows the game to run smoothly by reusing compiled shaders instead of compiling them from scratch each time a frame is rendered. However, if this cache becomes too small, corrupted, or mismanaged, errors like DXGI_ERROR_DEVICE_HUNG can occur due to failed or incomplete shader operations.

Comments