Project

General

Profile

Emulator Issues #9923

[VULKAN] Baldur's Gate: Dark Alliance black flashing.

Added by mstreurman almost 3 years ago. Updated almost 3 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-1405

Description

Game Name?

Baldur's Gate: Dark Alliance NTSC-U

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

GDEE71

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

3b428c5f5e7f60d1dac28a792d5c0367

What's the problem? Describe what went wrong.

Vulkan has black flashing at certain spots (same spots as where D3D12 has texture corruption)

What steps will reproduce the problem?

load my savestate (or use my memory card, load the 1st save and walk up against the wall of boxes)

Which versions of Dolphin did you test on? Does using an older version of Dolphin solve your issue? If yes, which versions of Dolphin used to work?

5.0-1395

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

Intel Core i7 4800MQ, nVidia GeForce GTX870m 6GB, 16GB Ram, Windows 10 x64 Anniversary Edition

Is there any other relevant information? (e.g. logs, screenshots,
configuration files)

With the graphics configuration screen and the game open I changed all options one by one to see if anything changes: Nothing changes

OpenGL and D3D11 do NOT have this issue. D3D12 has a different issue which I will make a different bugreport for.

All of the other graphics options change nothing, also changing from dual-core to single-core doesn't change anything.

Added log and savegame, uploaded FIFOLOG and Savestate to MEGA because of size.
FIFOLOG: https://mega.nz/#!AkwhjCxY!Uj0YeLu2ozEPWHjY4qqz4cfcsRzAcByG_D0dhhGPgNs
SAVESTATE: https://mega.nz/#!sgZU3LSB!MpXyG_EL-4D9T6MBejtfF1cKfvV8KScYm44ufRixvho

71-GDEE-BGDA_slot00-1130-104429-133.gci (232 KB) 71-GDEE-BGDA_slot00-1130-104429-133.gci mstreurman, 11/30/2016 10:53 AM
BGDA Vulkan Log.txt (18.8 KB) BGDA Vulkan Log.txt Log which logs all on Warning mstreurman, 11/30/2016 10:53 AM

History

#1 Updated by mstreurman almost 3 years ago

When this happens emulation speed goes from a consistent 100% (62-63FPS) to about 60% (33-34FPS)

#2 Updated by Stenzek almost 3 years ago

  • Status changed from New to Accepted
  • Assignee set to Stenzek

Able to reproduce with the fifolog, thanks! I will look into this.

#3 Updated by Stenzek almost 3 years ago

Could you please test the game with PR #4480:

https://github.com/dolphin-emu/dolphin/pull/4480
Or, if you need a prebuilt version: https://dl.dolphin-emu.org/prs/pr-4480-dolphin-latest-x64.7z

The fifolog renders correctly on my end now, it would be great if you could confirm it fixes the issue when playing the game as well. You'll still get the warnings about command buffers being executed early, but the flickering problem should be fixed. This is due to the game is causing a very large amount of uniform buffer usage, so it might be worth investigating and seeing if we can reduce it at all.

#4 Updated by mstreurman almost 3 years ago

The black flashes are gone with this PR but the gamespeed still drops to 50% with 30-32 FPS

#5 Updated by Stenzek almost 3 years ago

  • Status changed from Accepted to Fixed

Fixed by 5.0-1405: https://dolphin-emu.org/download/dev/e2018f22085dd168b8ef6ec1c8ff6260e8c3e8b2/

The speed drop is not a Vulkan-specific issue, I suspect that is mainly due to the number of draw calls this game is causing, which is a separate issue. On the fifolog at least, I get similar performance on GL and Vulkan.

There might be some optimizations we can make here for this specific game (after really quickly examining the log it seems the vertex shader does not consume the fields that are updated), but there are also a few other games that suffer from this type of slowdown, so a general solution would be better.

#6 Updated by JosJuice almost 3 years ago

  • Fixed in set to 5.0-1405

Also available in: Atom PDF