Well, scrap that. It launched now weirdly. Not sure why it didn't last time.
I think I know what happened. There is a delay in the beginning, so I minimized Wine fullscreen window, and after restoration - it's black and nothing works. If I don't minimize it, it works OK.
The game is querying for the D3D11_FEATURE_D3D11_OPTIONS1 and D3D11_FEATURE_D3D11_OPTIONS2 features, which refer to D3D11.2 and D3D11.3 features respectively.
DXVK doesn't even support these versions of D3D, and therefore returns E_NOTIMPL. If you want you can try returning the appropriate structures and specifying false for all the features.
The formats it is requesting are not documented.
See my update above. I managed to run it, but if I ever minimize the game, it gets trashed. Not sure if it's a general dxvk bug, or specific to the game.
Hm, setting virtual desktop to screen resolution in Wine settings works around this.
Does it work properly with wined3d?
Witcher 3 basically dies when minimizing and restoring it as well, not sure what's going on there but that issue has been common to wined3d and dxvk ever since I fixed a bug related to window style flags.
As usual, there's nothing I can do without an apitrace (and with this kind of problem, there's probably not much I can do with one, but at the very least I could see what the game is trying to do).
Behavior is similar with wined3d. If I minimize the window, music stops playing, and after restoring the focus I only see a hand cursor and black screen (and music is not restored). The difference is that with wined3d in game graphics don't work to begin with beyond the starting screen with text. With dxvk they work. Minimize + restore has the same effect.
I also just realized that the game is actually using Unity 2017.4.2f2, I thought it was some custom engine before. So I suppose this issue should be common to other recent Unity games.
I tried to test what you said about The Witcher 3 and I see that it works fine when I set "borderless window" in graphics settings. But when I set it to "fullscreen" there, minimize + restore also trashes the game. I haven't noticed it before, since it was always "borderless window" for me. I suppose Wine's virtual desktop produces a similar result on the higher level.
I can try producing some api trace a bit later.
To me this seems like a wine issue.
If i launch this game through wine either with or without dxvk and alt tab then i get the black screen when i alt tab back in.
If i do the same with proton this does not happen both with and without PROTON_USE_WINED3D=1
R9 380 mesa-git.
Edit: If i just take a window in front of it so it still visible but looses focus you can see that it freezes and doesn't produce any more frames. The dxvk hud is also frozen
Yes this does seem like a wine issue. It works when i set wine to use a virtual desktop. Tested with wine 7.8
@Blisto91 I tested on Windows and can confirm your suspicion about this being a Wine issue. Title flawlessly toggled focus off and back on without issue using DXVK.
Thanks for checking 👍
Ive been coming back to this with every wine release to see if anything has changed 😁
PROTON_USE_WINED3D=1`x1 2022-04
Using GOG version.
If the game loses focus (minimized or even Alt+Tab'ed out from) and then focus is restored, it turns black and nothing happens.
Mesa / hardware:
Wine: latest Wine master and 3.13.0 - same result.
Errors in TheBardsTaleTrilogy_d3d11.log: