Emulator Issues #9923

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

Added by mstreurman over 3 years ago. Updated over 3 years ago.

% Done:


Operating system:
Issue type:
Relates to usability:
Relates to performance:
Relates to maintainability:
Regression start:
Fixed in:


Game Name?

Baldur's Gate: Dark Alliance NTSC-U

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


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


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?


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.

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


#1 Updated by mstreurman over 3 years ago

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

#2 Updated by Stenzek over 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 over 3 years ago

Could you please test the game with PR #4480:
Or, if you need a prebuilt version:

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 over 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 over 3 years ago

  • Status changed from Accepted to Fixed

Fixed by 5.0-1405:

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 over 3 years ago

  • Fixed in set to 5.0-1405

Also available in: Atom PDF