doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
13.29k stars 857 forks source link

Starcraft Remastered | Can't enable real time lighting #4396

Open Foxy41 opened 3 weeks ago

Foxy41 commented 3 weeks ago

I have been playing Starcraft Remastered, the game is running perfectly but I can't enable the real time lighting option, which requires a minimum of 2gb of vram, even though my GPU is supported.

Software information

Lutris, playing Starcraft remastered through the battle.net in lutris.

System information

Screenshots

The conditions are having hardware with more than 2gbs of VRAM, and not having the cartooned skin set enabled (Which I haven't enabled) SCR_bug dxvk hud shows the gpu correctly i1mage

Blisto91 commented 3 weeks ago

This may be fixed in the next release of dxvk-nvapi if the game uses that. They recently added some functionality that games can use to get VRAM amount. Will try to test here later.

doitsujin commented 3 weeks ago

IIRC we had a report about this game before. I don't remember what the issue was, but it's probably not using DXGI to query the available amount of VRAM because (some) game developers really hate writing simple and reliable code for some reason.

Game might also just not support ≥4GB of VRAM, in which case DXVK_CONFIG="dxgi.maxDeviceMemory=4095" might help.

Foxy41 commented 3 weeks ago

Game might also just not support ≥4GB of VRAM, in which case DXVK_CONFIG="dxgi.maxDeviceMemory=4095" might help.

Since I dualboot, I also tried running the game natively in Windows and It works fine with 8GB of VRAM (I could enable real time lighting without issues).

Blisto91 commented 2 weeks ago

Just so it is noted in the issue. I have only been able to reproduce this issue myself when using older Wine builds like Proton 8 or Wine-GE. When using Proton 9, Experimental, Proton-GE 9-16 etc it works fine. The game doesn't use nvapi and i haven't found that the problem is something to do with dxvk as using a newer dxvk version in Proton 8 doesn't prevent the issue from showing.

Tested with a RTX 4080 (system also have a AMD iGPU)

eszlari commented 2 weeks ago

https://gitlab.winehq.org/wine/wine/-/merge_requests/4466

Blisto91 commented 2 weeks ago

Ah nice :+1:

Foxy41 commented 2 weeks ago

Seems to be a wayland issue. On wayland the real-time lighting setting is disabled, but I tried in X11 and the setting works correctly. (I am using KDE Plasma, version 6.2.2)

SCRBugReport3
eszlari commented 2 weeks ago

I guess you are running this under Xwayland and not the experimental native Wayland driver? Then open a bug report for Wine, component "winex11.drv":

https://bugs.winehq.org/buglist.cgi?component=winex11.drv&product=Wine&resolution=---

Foxy41 commented 2 weeks ago

I guess you are running this under Xwayland and not the experimental native Wayland driver?

Yes, I am running the game using ProtonGE9-16 under Xwayland

Then open a bug report for Wine, component "winex11.drv":

https://bugs.winehq.org/buglist.cgi?component=winex11.drv&product=Wine&resolution=---

Okay, I will later create a bug report on the component you gave, saying that in Starcraft Remastered VRAM is not reported correctly under Xwayland

Blisto91 commented 2 weeks ago

Linking the new Wine issue: https://bugs.winehq.org/show_bug.cgi?id=57351