Black Myth: Wukong – Shader Compilation crash Out of Memory Fix
Black 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:
- Vertex Shaders
- Geometry Shaders
- Pixel Shaders
- Tessellation Shaders
- Tensor Shaders
- Ray Tracing Shaders
- 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
- Click Windows
- Go to Windows Settings
- Click System
- Go to Storage
- Go to Temporary Files
- Select DirectX Shader Cache and remove files.
Increase The VRAM
- Click Windows
- Go To Window Settings
- Click Advanced System Settings
- Under the Advanced Tab, select Performance Settings
- Go to Advanced Tab, select Change on Virtual Memory
- Click to unselect the “Automatically manage paging file size for all drives“.
- Click on the Drive that has more free space. (Minimum 32 GB free space)
- Click on the Custom Size.
- Enter “16,384” on Initial size and enter “32,768” on Maximum size.
- Click OK.
- Restart the PC.
Increase Shader Cache Size
- Open the Nvidia Control Panel
- Manage 3D Settings
- Select Global Settings
- Select Shader Cache
- Select 10 GB from the drop-down menu.
- Apply the settings.
- Launch the game.
Disable Fullscreen In Steam Settings
- Right-click Black Myth: Wukong on Steam
- Select Manage and browse local files.
- Right-click on executable
- Select Properties
- Select Compatibility Tab
- Now, Disable Fullscreen Optimization and apply.
- Launch the Game.
Disable CPU Overclocking and Undervolt
For Intel 13 and 14 users, you need to follow these steps:
- Download Intel Extreme Tuning Utility
- Select a Performance Core ratio of 54
- Change your CPU clocks to default if you have overclocked the CPU.
- Restart the PC
Enable Nvidia CUDA System Fallback Policy
- Open the Nvidia Control Panel
- Select Manage 3D Settings
- Go to Program Settings
- Select Black Myth Wukong from the drop-down menu
- Select CUDA – System Fallback Policy
- Select “Prefer System Fallback“
- Apply the settings
- Launch the game.
Lower The Display Resolution To 1080p
If the error persists while playing the game,
- go to game settings
- Change Display resolution to 1080p