doitsujin / dxvk

Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine
zlib License
12.28k stars 786 forks source link

GTA: SA (classic) Flashing screen, broken screenshots #3781

Open Corrado346 opened 6 months ago

Corrado346 commented 6 months ago

The game window flashes black when the window is out of focus (eg. clicking on another program on another monitor) Pressing PRTSC captures the frame when the last black screen flash happened (issue mentioned above) It also happens with screen snipping The game also takes a little bit longer to quit

Software information

Grand Theft Auto: San Andreas (classic)

System information

When I install apitrace my game does not want to run I can't really screenshot how any of this looks like

these are all just little inconveniences that make playing the game a little more annoying the old api didnt have these issues it just had some rendering issues which where fixed by insalling dxvk but it also introduced these new bugs

K0bin commented 4 months ago

You didn't mention Wine so I assume you're on Windows. It's completely normal that printscreen doesn't capture fullscreen games.

Corrado346 commented 4 months ago

You didn't mention Wine so I assume you're on Windows. It's completely normal that printscreen doesn't capture fullscreen games.

It's not fullscreen it's running in windowed borderless mode.

K0bin commented 4 months ago

If printscreen doesn't work, it's in fullscreen.

Corrado346 commented 4 months ago

If printscreen doesn't work, it's in fullscreen.

It works but it captures the frame before the black screen occurs. And a black screen occurs when I press printscreen or open screen snipping tool or when I click on a program on another screen.

Here is a video of what I mean: https://youtu.be/c2LT39FtW6Q?si=AKCuBIloib_bs4te A black screen doesn't appear in the video it just kind of snaps into a frame but I am seeing a black flash on my screen.

Tiagoquix commented 1 week ago

Install SilentPatch; it should help.

DXVK is known not to always work well with overlays on Windows. See https://github.com/doitsujin/dxvk/wiki/Windows.

Corrado346 commented 1 week ago

Install SilentPatch; it should help.

DXVK is known not to always work well with overlays on Windows. See https://github.com/doitsujin/dxvk/wiki/Windows.

I already have SilentPatch and it does not help.

Also I didn't mention that my game uses a mod that makes it run in windowed borderless mode so it may be interfering with DXVK somehow. I'm using this mod to fix the window minimizing in fullscreen mode when I click on another program on another monitor, the mod worked without issues prior to installing DXVK.

I found a fix that resolves all of the issues I mentioned before (requires mod to replicate): While in game press alt+enter (to enter windowed with borders mode) and then again press alt+enter (to enter windowed borderless mode again) and that's it, that fixed all of the issues I had.

A little annoying having to do that every time to have normally functioning screenshots and for the screen not to flicker when I click on something on another monitor but there isn't much more I can do about it.

It is what it is.