Project

General

Profile

Actions

Emulator Issues #11654

closed

D3D12: Shader recompilation occurs on every game startup

Added by ryanebola16 about 5 years ago. Updated about 5 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:
5.0-9993

Description

Game Name?

Gecko OS with Super Smash Bros. Brawl set as the default ISO

Game ID? (right click the game in the game list, properties, info tab)

RSBE01

MD5 Hash? (right click the game in the game list, properties, info tab, MD5 Hash: Compute)

4ea8dda4fadb4b58b15052d053bc0af8
WIIScrubber edited ISO, only replaces music and intro video. Works fine on Dolphin and real Wii.

What's the problem? Describe what went wrong.

This problem is evident when "Compile shaders before starting" is enabled. On D3D11, there is no shader compilation progress bar during game startup after initial shader compilation. On D3D12, it seems the shaders are recompiled every startup. This can waste a lot of time when testing games that involve many shaders.

What steps will reproduce the problem?

  1. Enable "Compile shaders before starting"
  2. Load a game that will involve many shaders (Super Smash Bros. Brawl through Gecko OS works for me)
  3. Complete initial shader compilation
  4. Exit and restart emulation
  5. Compare D3D11 vs D3D12 results. Shaders will recompile on D3D12 during every game startup. D3D11 shader recompilation is much faster.

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

Yes, 5.0-9884

Is the issue present in the latest stable version?

No, 5.0

If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)

5.0-9878

What are your PC specifications? (CPU, GPU, Operating System, more)

Win 10 Pro x64
Intel Core i7-4702MQ CPU @2.20GHz
GeForce GT 750M
2x 8GB Hynix 1600MHz
GeForce Game Ready Driver 419.67

Actions #1

Updated by ryanebola16 about 5 years ago

Also, this is independent of ubershader settings.

Actions #2

Updated by Stenzek about 5 years ago

  • Status changed from New to Fix pending

Should be fixed by https://github.com/dolphin-emu/dolphin/pull/7999, assuming your driver implements the cache data blob. If it doesn't, then there's not much we can do.

Actions #3

Updated by Stenzek about 5 years ago

  • Status changed from Fix pending to Fixed
  • Fixed in set to 5.0-9993
Actions

Also available in: Atom PDF