Black Myth: Wukong – Shader Compilation crash Out of Memory Fix

Black Myth WukongBlack Myth: Wukong is a new generation soul-like game that emphasizes seamless movement, combat, and visual graphics for the best gaming experience that all players hope for. The game uses Unreal Engine 5 so it’s a no-brainer that the game will require high PC hardware. Even if you have a high-end PC, during the process of shader compilation; it’s saying Out of Video Memory error. What is the cause even if we have powerful graphics cards, SSDs, latest and modern processors?

What is a Shader?

Shader is a program that runs on a graphic module during the process of rendering objects and scenes. There are different categories of shaders which include:

  1. Vertex Shaders
  2. Geometry Shaders
  3. Pixel Shaders
  4. Tessellation Shaders
  5. Tensor Shaders
  6. Ray Tracing Shaders
  7. Primitive and Mesh Shaders

Instead of getting into more depth about all these Shaders as each of them functions differently, these are all programmed in such a way that we can experience the textures, and physics such as explosion, water, light, etc. Finally, the graphics card can run Compute Shaders which calculates complex mathematical calculations i.e. useful for animation.

Once the Shaders compilation is complete, you can experience that even changing the settings of Texture from Low to High will not affect the FPS much considering that there is sufficient VRAM.

What Is Shader Compilation?

The processor needs to compile the shader which is written in high-level languages. This is essential because graphics cards cannot access without it. The higher the detail, the higher it takes time to compile and render information. Therefore, we experience long startups at the beginning.

Not all the shaders are compiled at the beginning. To decrease the long startup, there are shaders compiling behind the scenes during the cutscene and loading screens. The stutter we experience during the gameplay is because we wander around a new area that has not yet loaded.

Difference Between PC and Console Shader Compilation?

There are multiple options in regard to system GPU and video drivers on PC, therefore the possible combination is too high compared to the console which removes the possibility of pre-compilation of shaders.

The components and OS of new-gen consoles are interconnected with the previous-gen console which allows developers to pre-compile shaders. Therefore, shader compilation is much faster on consoles than on PC.

Black Myth: Wukong Out Of Video Memory Error Which Leads To Crash (Fix )

The Out of Memory error occurs when the system uses more than the allocated memory resulting in an application crash. We have listed multiple ways to fix the error and free the memory. Launch the game to see if the error persists after each change or you can completely change the whole thing optimally.


Delete Corrupted DirectX Shader Cache

  1. Click Windows
  2. Go to Windows Settings
  3. Click System
  4. Go to Storage
  5. Go to Temporary Files
  6. Select DirectX Shader Cache and remove files.

Increase The VRAM

  1. Click Windows
  2. Go To Window Settings
  3. Click Advanced System Settings
  4. Under the Advanced Tab, select Performance Settings
  5. Go to Advanced Tab, select Change on Virtual Memory
  6. Click to unselect the “Automatically manage paging file size for all drives“.
  7. Click on the Drive that has more free space. (Minimum 32 GB free space)
  8. Click on the Custom Size.
  9. Enter “16,384” on Initial size and enter “32,768” on Maximum size.
  10. Click OK.
  11. Restart the PC.

Increase Shader Cache Size

  1. Open the Nvidia Control Panel
  2. Manage 3D Settings
  3. Select Global Settings
  4. Select Shader Cache
  5. Select 10 GB from the drop-down menu.
  6. Apply the settings.
  7. Launch the game.

Disable Fullscreen In Steam Settings

  1. Right-click Black Myth: Wukong on Steam
  2. Select Manage and browse local files.
  3. Right-click on executable
  4. Select Properties
  5. Select Compatibility Tab
  6. Now, Disable Fullscreen Optimization and apply.
  7. Launch the Game.

Disable CPU Overclocking and Undervolt

For Intel 13 and 14 users, you need to follow these steps:

  1. Download Intel Extreme Tuning Utility
  2. Select a Performance Core ratio of 54
  3. Change your CPU clocks to default if you have overclocked the CPU.
  4. Restart the PC

Enable Nvidia CUDA System Fallback Policy

  1. Open the Nvidia Control Panel
  2. Select Manage 3D Settings
  3. Go to Program Settings
  4. Select Black Myth Wukong from the drop-down menu
  5. Select CUDA – System Fallback Policy
  6. Select “Prefer System Fallback
  7. Apply the settings
  8. Launch the game.

Lower The Display Resolution To 1080p

If the error persists while playing the game,

  1. go to game settings
  2. Change Display resolution to 1080p

Leave a Reply

Your email address will not be published. Required fields are marked *