Project

General

Profile

Actions

Emulator Issues #11599

closed

Emulation can't be stopped while shaders are compiling

Added by 8times9 about 5 years ago. Updated about 1 month ago.

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

0%

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

Description

Dolphin 5.0-9697, Windows 10

Steps to reproduce:

  1. Ensure "Compile Shaders Before Starting" is checked in the Graphics settings
  2. Start a game
  3. While the shaders are still compiling, try to end emulation either by clicking X or Stop in the main window toolbar.
  4. Click Yes on the confirmation dialog
  5. Shader compilation will continue and Dolphin stops responding. It can only be closed via Task Manager.
  6. After shader compilation is completed, the emulation will end and Dolphin will behave normally again.

Because shader compilation is a minutes-long process, ideally trying to end emulation during this time would simply cancel shader compilation and end emulation.

Actions #1

Updated by Stenzek about 5 years ago

Doing this would require restructuring how the emulator boots. The shader compilation is part of the backend initialization, which must finish before the core is running, which prevents it from being stopped. Not saying it can't happen, but it's not a straightforward change.

Actions #2

Updated by flacs over 3 years ago

  • Status changed from New to Accepted
  • Relates to usability changed from No to Yes

The issue is also relevant when you change graphics settings while a game is running. It's impossible to revert back to the previous setting until all shaders are compiled.

Actions #3

Updated by ZephyrSurfer over 3 years ago

There is a PR for this: https://dolp.in/pr8467

Actions #4

Updated by Billiard26 about 1 month ago

  • Status changed from Accepted to Fixed
  • Fixed in set to 5.0-16781
Actions

Also available in: Atom PDF