doitsujin / dxvk

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

Flickering on MTA (Multi Theft Auto) Client #3413

Open Heus-Sueh opened 1 year ago

Heus-Sueh commented 1 year ago

in Fullscreen the game is practically unplayable with low fps and constant flickering to work around this it is necessary to leave the client in windowed mode

MTA in Fullscreen: Kooha-2023-04-29-23-20-28.webm

Software information

MTA (Multi Theft Auto) is a client for GTA SA to play online

System information

Apitrace file(s)

Multi Theft Auto-apitrace.zip sorry if i didn't use the apitrace correctly

Log files

Multi Theft Auto-logs.zip

getting MTA running is a bit tricky but here's how to run it:

Blisto91 commented 1 year ago

Try with current master as this might already have been fixed. You can download here https://github.com/doitsujin/dxvk/actions/runs/4949140079 The apitrace doesn't contain anything sadly. If it's just a few KB that means it didnt work

Heus-Sueh commented 1 year ago

Try with current master as this might already have been fixed. You can download here https://github.com/doitsujin/dxvk/actions/runs/4949140079 The apitrace doesn't contain anything sadly. If it's just a few KB that means it didnt work

ok i will test

Blisto91 commented 1 year ago

The newly released 2.2 is also fine to test with

K0bin commented 1 year ago

That apitrace is useless unfortunately. It's practically empty.

SirSAC commented 1 year ago

See if "https://github.com/SirSAC/dxvk/actions/runs/5000894491" have the same effect on the client.

K0bin commented 1 year ago

@SirSAC There's no way that altering a couple of build flags will make any difference here and I would appreciate it if you didn't spam that under any open issues you come across.

SirSAC commented 1 year ago

ok

HunterCZ122 commented 1 year ago

d3d9.deferSurfaceCreation = 1 as a workaround fixes the issue, at least on borderless windowed mode (which is enabled by default). Standard fullscreen crashes for some reason.

Screenshot_20230521_141024

Log: gta_sa_log.txt

Log with standard fullscreen: gta_sa_defer_fs_log.txt I even tried ANV driver just in case if it's a driver bug. Same thing. Fortunately it will show dialog about switching back to borderless windowed after several crashes (like if it was mod issue and not DXVK itself) I'm also missing some patches like child window or shared resources, which maybe can cause the crash.

I can't manage to make apitrace at all. Mod has weird anti-cheat which blocks everything in game path and just loads d3d9.dll from SysWOW64. Maybe someone with Windows rig will help here.

Riesi commented 1 year ago

Okey so I managed to get traces with wined3d and dxvk (crashing). Sadly the crash doesnt reproduce with dxvk on replay of the wined3d trace.

mta_dxvk_trace.tar.gz

mta_wined3d_trace.tar.gz

Heus-Sueh commented 10 months ago

Maybe the flickering was resolved. I tested it on wine 8.14 with the latest version of dxvk and I was able to navigate the menus without the screen constantly blinking. If anyone can test, confirm if the bug has been resolved as well.