Fix: Hogwarts Legacy Stuck at ‘Preparing Shaders’ Screen

Hogwarts Legacy performs shaders optimization when you launch the game for the first time. This process takes place on the Preparing shaders screen, and it can take a while depending on the specifications of your computer.

Hogwarts Legacy Stuck on Preparing Shaders
Hogwarts Legacy Stuck on Preparing Shaders Fix

In some cases, the game can get stuck on the preparing shaders loading screen, and even result in crashes. This can happen when your frame rate jumps abnormally, causing the game to crash. In addition, the shader cache size and game config files on your computer can also contribute to the issue.

In this article, we will list down a number of methods that you can use to resolve the problem in question.

1. Limit In-Game FPS

The first thing you should do when starting to resolve the issue in question is to limit your in-game frame rate. Your frame rate changes all the time depending on the game environment and a lot more. Abnormal bumps to your FPS can often cause the game to stutter or even crash in some cases.

This can happen as the game tries to prepare the shaders, causing it to get stuck or crash. To fix this, you will have to cap the frame rate in the game. Since the game gets stuck on the preparing shaders screen, you can not access the frame limiter in the settings menu of the game.

In such a scenario, you can use the graphics driver on your computer to do so. Follow the instructions below for your respective graphics card.

NVIDIA

  1. First, open the NVIDIA Control Panel by searching for it in the Start Menu.
    Opening NVIDIA Control Panel
    Opening NVIDIA Control Panel
  2. On the left-hand side, click on the Manage 3D settings option.
    Navigating to 3D Settings
    Navigating to 3D Settings
  3. After that, switch to the Program Settings tab.
  4. From the drop-down list of games, select Hogwarts Legacy.
  5. Then, scroll down and locate the Max Frame Rate option.
    Enabling Max Frame Rate
    Enabling Max Frame Rate
  6. Turn on the option and use the slider to limit your frame rate to 120.
  7. Click OK and launch the game to see if the issue goes away.

AMD

If you are using an AMD graphics card, you can limit your FPS quite easily via the AMD Radeon Software. You can also AMD Radeon Chill to achieve the same result. Navigate to Gaming > Graphics and use the Max FPS slider to limit your frame rate.

2. Increase Shader Cache Size (NVIDIA Only)

One of the reasons the issue can occur is when there is not enough space for the game to store the compiled shaders on your computer. The compiled shaders have to be stored on your computer so they can be loaded in the future when you launch the game. Otherwise, the game will have to optimize and compile shaders on every launch which is not a good design.

If the shader cache size does not allow for the game to store the compiled shaders, the game can get stuck on the preparing shaders screen. In such a scenario, you will have to increase the shader cache size via the NVIDIA Control Panel. Follow the instructions below to do this:

  1. First, open the NVIDIA Control Panel by searching for it in the Start Menu.
    Opening NVIDIA Control Panel
    Opening NVIDIA Control Panel
  2. Navigate to the Manage 3D settings option.
    Navigating to 3D Settings
    Navigating to 3D Settings
  3. There, scroll down under Global Settings to locate Shader Cache Size.
  4. Use the drop-down menu and set it to Unlimited.
    Changing Shader Cache Size
    Changing Shader Cache Size
  5. Once you do that, click OK and restart your computer.
  6. Open the game after your PC has booted up to see if the error occurs.

3. Delete Game Configs and Cached Files

The config and cached files stored by the game on your computer can also cause the game to get stuck on the preparing shaders screen. This can happen when there is an anomaly or corruption in the config or cached files.

In such an instance, you will have to delete the game config and cached files from your computer. This will for the game to generate a new copy of the deleted files when you launch it again. To do this, follow the instructions down below:

  1. First, open the Run dialog box by pressing the Windows key + R on your keyboard.
  2. In the Run dialog box, type in %localappdata% and hit Enter.
    Navigating to Local AppData Directory
  3. Then, navigate to the Hogwarts Legacy folder.
  4. There, delete the configs folder.
  5. Once you do that, navigate to the system drive (C:) on your computer.
  6. After that, make sure you have hidden files enabled. To do this, click on the View drop-down menu and choose Show > Hidden Items.
    Viewing Hidden Files
    Viewing Hidden Files
  7. Then, in the system drive, navigate to ProgramData > Hogwarts Legacy.
    Navigating to ProgramData Folder
    Navigating to ProgramData Folder
  8. Inside the Hogwarts Legacy folder, delete all of the files permanently.
  9. Finally, open the game on your PC to see if the issue goes away.

4. Swap NVIDIA DLSS Version

NVIDIA DLSS is an upscaling and image enhancement technology that is used by various games to improve the textures and overall graphics of the game. These deep learning technologies can often be used in optimizing the shaders of the game for better performance.

As such, updating the version of NVIDIA DLSS used by the game on your computer can help you resolve the shaders compilation issue. To do this, you will have to use a third-party utility known as DLSS Swapper which will help you swap the version of DLSS used by Hogwarts Legacy.

Follow the instructions below to do this:

  1. First, open the official GitHub repository of the DLSS Swapper utility by clicking here.
  2. On the right-hand side, click on the latest release available under Releases.
    Navigating to Latest DLSS Swapper Release
    Navigating to the Latest DLSS Swapper Release
  3. Then, download the installer of the latest version available.
    Downloading DLSS Swapper
    Downloading DLSS Swapper
  4. Run the setup file and go through the installation which is quite straightforward.
  5. Once the installation has been completed, open the DLSS Swapper application.
  6. From the list of games, choose Hogwarts Legacy and select the latest version of DLSS available from the list.
    Swapping DLSS Version
    Swapping DLSS Version
  7. The application will download the selected version of DLSS if it is not available on your computer and replace the proper files to swap the DLSS version of the game.
  8. Once you do that, open the game to see if the problem goes away.
ABOUT THE AUTHOR

Muhammad Zubyan


Muhammad Zubyan is a certified Google IT Support Professional with over 7 years of extensive experience. He has worked on more than 1500 computers, gaining valuable insights that enable him to detect and troubleshoot any complicated root cause of Windows-related issues and errors. In addition to managing Appuals as a Senior Editor, he is currently developing his own Game Optimization program that caters to both gamers and casual users alike.