doitsujin / dxvk

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

[Fallout 76] Strange Colors #779

Closed aidenmadaffri closed 5 years ago

aidenmadaffri commented 5 years ago

Colors in Fallout 76 seem to render very strangely.

Software information

Screenshots

Example 1 Example 2

System information

Apitrace file(s)

Log files

beniwtv commented 5 years ago

I have not noticed this on an AMD RX480 using Mesa. If it helps narrow down the issue, I could make an API trace too.

The only issue I see is that some grass appears to have a "film-grain" effect over it - but I am not sure it's DXVK related at all as some Windows friends also report weirdness with grass.

btw @atm0915 Bethesda Launcher works in Wine (I only tried -staging), just needs corefonts to boot, and every time you want to download/update a game you have to rename a file manually (see WineHQ's entry for the launcher, it's explained there).

doitsujin commented 5 years ago

Thanks for providing the apitrace. Same thing happens when replaying the trace on my RX 480 - I hope it's not baked into the trace, because that would be next to impossible to debug. Will investigate next week.

aidenmadaffri commented 5 years ago

I am open to do anything to help you debug if you need me to.

K0bin commented 5 years ago

grafik

https://gfycat.com/ConstantSadGyrfalcon

Can reproduce the issue with the apitrace running on D3D11 :(

aidenmadaffri commented 5 years ago

/u/Nugaryal reported the same issue in this reddit post, he gave me his specs to add here if they are useful. RTX 2080 TI Nvidia driver: 415.18 Wine: 3.20 DXVK: 0.92

jcrollard84 commented 5 years ago

Same issue. Using the same wine / Nvidia driver as atm. My card is NVIDIA 1060. The game works fine but everything is very red.

jcrollard84 commented 5 years ago

Thanks for providing the apitrace. Same thing happens when replaying the trace on my RX 480 - I hope it's not baked into the trace, because that would be next to impossible to debug. Will investigate next week.

Any luck? I know it's probably too soon but let me know if you need someone to test / debug anything and I can help.

ntropy83 commented 5 years ago

Hi there, I like to help too but I dont get past the login screen. There is no sound and I can log in but it says: servers are down for maintenance; what was not true and I double checked in Windows. I have the same setup like you, except for the graphics card:

GPU: GTX 1060
Driver: Nvidia 396.54.09
Wine version: 3.20
DXVK version: 0.92

I have a clean WINEPREFIX, what else did you add? Corefonts and xact maybe? Any tipps appreciated, thank you in advance :)

beniwtv commented 5 years ago

You need corefonts for the launcher, but other than that only DXVK for the game. I used wine-staging-3.20, try that if you only tried regular wine so far.

Riesi commented 5 years ago

Alright I got 2 apitraces from Fallout 76 on windows here is the first one, because the 2nd stopped uploading and I am still reuploading. The game crashed while recording this one, but the trace replayed fine on the windows machine. The trace only crashed apitrace at the same point the game crashed. I will post the 2nd trace when its done uploading in approximately 1h.

Side note: The loading screen in this game is pretty long.

Windows trace: https://drive.google.com/open?id=12152NFduUTqVmBajBPi1KNbP6yU1AU0T

Riesi commented 5 years ago

Here is the 2nd trace: https://drive.google.com/open?id=1szYvyJc7GrZrHgdXtvdCeps_MDWtTnyW

ntropy83 commented 5 years ago

I have solved my issue, I always got the error 'NoRegionPing' upon connecting in Fallout. I installed Visual C++ Redistributable for Visual Studio 2015 as an exe in the wineprefix and then it worked.

So now I have the same color glitches, I tried to make apitraces dont know if it worked tho.

bildschirmfoto vom 2018-12-07 00-49-14

dxgi.log - https://pastebin.com/VTirFTcs

Traces: https://drive.google.com/file/d/1szYvyJc7GrZrHgdXtvdCeps_MDWtTnyW/view?usp=sharing

doitsujin commented 5 years ago

So, two things I discovered:

doitsujin commented 5 years ago

@enthalpie @atm0915 can you test 9572425912c2ee07ee112d8fe75a817c0f82b85c please? Here's a build in case you need it:

dxvk-master.tar.gz

ntropy83 commented 5 years ago

Thanks for your effort, I have tried your prebuilt fix but it is still all very red. The GPU tho gets taxed lesser, before the game maxed out my VRAM of 6 GB, now it stays within reasonable ranges.

doitsujin commented 5 years ago

No idea what's causing this issue then. As mentioned, the apitrace recorded on Windows replays fine on my end (both on AMD and Nvidia), so this doesn't seem to be your average rendering issue.

Can anyone test whether this happens on Windows with DXVK as well?

ntropy83 commented 5 years ago

I may be on to something: in the wineprefix under /users/Username/My Documents/My Games/Fallout76 I deleted both ini files and the saves flder. Then started he game and now the raphics ar perfect. I changed the Fallout.ini as well, but I think deleting those files already does the trick. The graphics are set to ultra and run like in Windows and with 60 fps, just perfect. :)

Only downside is, the game and music hangs every minute or so for 5 seconds and then goes on. That stuttering is really hard. Will try a few things like switching of esync.

Edit: that's it, no esync did the trick and it runs perfect now on ultra settings with 60 fps. Thank you very much doitsujin, great work the Dxvk layer :). Danke Alter!

My setup now: Lutris Wine: tkg-protonified-3.21-x86_64 DXVK: 0.93 Esync disabled Driver Nvidia 396.54. 09

jcrollard84 commented 5 years ago

No idea what's causing this issue then. As mentioned, the apitrace recorded on Windows replays fine on my end (both on AMD and Nvidia), so this doesn't seem to be your average rendering issue.

Can anyone test whether this happens on Windows with DXVK as well?

It does. I tested it with dxvk on windows 10 and had the same odd colors.

jcrollard84 commented 5 years ago

I may be on to something: in the wineprefix under /users/Username/My Documents/My Games/Fallout76 I deleted both ini files and the saves flder. Then started he game and now the raphics ar perfect. I changed the Fallout.ini as well, but I think deleting those files already does the trick. The graphics are set to ultra and run like in Windows and with 60 fps, just perfect. :)

Only downside is, the game and music hangs every minute or so for 5 seconds and then goes on. That stuttering is really hard. Will try a few things like switching of esync.

Edit: that's it, no esync did the trick and it runs perfect now on ultra settings with 60 fps. Thank you very much doitsujin, great work the Dxvk layer :). Danke Alter!

My setup now: Lutris Wine: tkg-protonified-3.21-x86_64 DXVK: 0.93 Esync disabled Driver Nvidia 396.54. 09

Interesting. Tried deleting those files but no luck. Same issue still. I wonder what's different? I'm using the same wine and dxvk version.

-edit

Actually I think the colors are BETTER after deleting those files. Still a red tint on mostly everything, but it's not nearly intense. So this must be an issue with one or more of the options in the ini files?

I noticed after deleting them, they're recreated when you launch the game. Did you change anything in the files to make the graphics better?

jcrollard84 commented 5 years ago

I may be on to something: in the wineprefix under /users/Username/My Documents/My Games/Fallout76 I deleted both ini files and the saves flder. Then started he game and now the raphics ar perfect. I changed the Fallout.ini as well, but I think deleting those files already does the trick. The graphics are set to ultra and run like in Windows and with 60 fps, just perfect. :)

Only downside is, the game and music hangs every minute or so for 5 seconds and then goes on. That stuttering is really hard. Will try a few things like switching of esync.

Edit: that's it, no esync did the trick and it runs perfect now on ultra settings with 60 fps. Thank you very much doitsujin, great work the Dxvk layer :). Danke Alter!

My setup now: Lutris Wine: tkg-protonified-3.21-x86_64 DXVK: 0.93 Esync disabled Driver Nvidia 396.54. 09

Enthal, I'm pretty sure this has to do with Fallout76Prefs.ini

I've been messing with it and definitely getting changes. A few edits and everything was green instead of red, for me. Can you post your prefs file here if it's working well for you?

jcrollard84 commented 5 years ago

Sorry for another post, but I do believe I got it working on my end!

First create a file in your My Games/Fallout76 directory called Fallout76Custom.ini

Then put this in it:

[ScreenSplatter]

bBloodSplatterEnabled = 0

[Grass] iMinGrassSize = 80 bAllowCreateGrass = 0

[ImageSpace] bDoRadialBlur = 0

[Weather] bPrecipitation = 0 bFogEnabled = 0 bRainOcclusion = 0 bWetnessOcclusion = 0

[Enlighten] bEnableEnlighten = 0

Graphics are perfect after that, and works with Esync (for me).

Found these tips on another site for someone who was having graphic issues on windows..

ntropy83 commented 5 years ago

I have changed 3 or 4 values myself in the ini's that could be it. If I compare mine to your values, I have FogDisabled and enableEnlighten set to zero, the rest I have set to one. So maybe it is one of those two causing the problem. After deleting the Fallout76prefs.ini I figured, the one newly created was much shorter. Here are my ini's. The Fallout76.ini script is created from the main game folder, so it should be changed there and after the changes be deleted in the users/username/My Documents/My Games/Fallout76 folder

Fallout76.zip

ntropy83 commented 5 years ago

The solution is: bFogEnabled=0 bEnableEnlighten=0

In Fallout76.ini in the main game folder. One of the two or both.

Problem solved :), just the framedrops still make it unplayable for me

ghost commented 5 years ago

bEnableEnlighten=0

this setting fixed the red tint for me entirely. The result of course is that most textures are darker, guns, enemies, etc.

My setup is: Lutris wine: tkg-protonified-3.21-x86_64 DXVK: 0.93 esync: disabled Driver: nvidia-415.22 OS: Archlinux kernel: 4.19.6-1-ck-zen x86_64 GPU: GTX 980 4GB VRAM CPU: Ryzen 7 1700x

Makaronelle commented 5 years ago

Have the same issue here with a GTX 1060 on 396.54.09, here's my logs: https://gist.githubusercontent.com/Makaronelle/ea783c4e08d4cc7369ad08ee124ff84f/raw/b9b9077437f9c0bf2ace7af78689241a75e86da2/terminal.log https://gist.githubusercontent.com/Makaronelle/0828834ad0e9b0f9eb08b1fd0cd0d889/raw/a75943a09cafd28525652de504181d6a2b458796/Fallout76_d3d11.log

Hope it may help !

ntropy83 commented 5 years ago

Have the same issue here with a GTX 1060 on 396.54.09, here's my logs: https://gist.githubusercontent.com/Makaronelle/ea783c4e08d4cc7369ad08ee124ff84f/raw/b9b9077437f9c0bf2ace7af78689241a75e86da2/terminal.log https://gist.githubusercontent.com/Makaronelle/0828834ad0e9b0f9eb08b1fd0cd0d889/raw/a75943a09cafd28525652de504181d6a2b458796/Fallout76_d3d11.log

Hope it may help !

Navigate to the directory, where your Fallout76.exe is located and look for the Fallout76.ini. Open it with a Texteditor and look for " bEnableEnlighten = 1". change the 1 to a zero and save the file. After a Fallout Update, you may have to do it again. That should fix the red tint for the time being.

I have an error now that is really bugging me, but it seems to be windows-related. DXVK is working so good that I can already suffer Fallout errors, normally only Windows users have. :D Every now and then, I get framedrops to zero and the game hangs for five seconds. That is pretty bad in fights and almost always results in death. The windows people didnt seem to have fixed it so far from what I have read and its persisting since Fallout 4. Disabling VSync which locks the framerate in Fallout76 is an idea and another one is a memory leak regarding a two small pagefile. I dont know tho if thats with me and 16 GB RAM a real issue. I have reverted the NvAPI workaround and disabled nvapi manually but that only had an effect on micro freezes within Battlefield 5 (that runs Platinum now). In Fallout the error persits.

I will play a bit with settings on the weekend.

Makaronelle commented 5 years ago

Have the same issue here with a GTX 1060 on 396.54.09, here's my logs: https://gist.githubusercontent.com/Makaronelle/ea783c4e08d4cc7369ad08ee124ff84f/raw/b9b9077437f9c0bf2ace7af78689241a75e86da2/terminal.log https://gist.githubusercontent.com/Makaronelle/0828834ad0e9b0f9eb08b1fd0cd0d889/raw/a75943a09cafd28525652de504181d6a2b458796/Fallout76_d3d11.log Hope it may help !

Navigate to the directory, where your Fallout76.exe is located and look for the Fallout76.ini. Open it with a Texteditor and look for " bEnableEnlighten = 1". change the 1 to a zero and save the file. After a Fallout Update, you may have to do it again. That should fix the red tint for the time being.

I have an error now that is really bugging me, but it seems to be windows-related. DXVK is working so good that I can already suffer Fallout errors, normally only Windows users have. :D Every now and then, I get framedrops to zero and the game hangs for five seconds. That is pretty bad in fights and almost always results in death. The windows people didnt seem to have fixed it so far from what I have read and its persisting since Fallout 4. Disabling VSync which locks the framerate in Fallout76 is an idea and another one is a memory leak regarding a two small pagefile. I dont know tho if thats with me and 16 GB RAM a real issue. I have reverted the NvAPI workaround and disabled nvapi manually but that only had an effect on micro freezes within Battlefield 5 (that runs Platinum now). In Fallout the error persits.

I will play a bit with settings on the weekend.

Oh, don't worry, I already made my little investigation on that issue a couple of days ago so I could make a workable Lutris script for both AMD and Nvidia. Just posting logs to help solving this.

It may be easier if you simply put your custom settings in a Fallout76Custom.ini in your game "save" folder to prevent it from behind reseted every now and then with an update, directly editing the root folder's inis may give mixed result, plus it's cleaner that way !

ntropy83 commented 5 years ago

I was able to get rid of the frame drops or better micro freezes. The value "iPresentInterval" in users/username/my Documents/My Games/Fallout76Prefs.ini needs to be set to zero so VSync is disabled. The game runs perfect now for me at 80 fps, 1080p with maximum settings.

Juhu :)

This is prolly game engined related tho, cause the engine is crap.

jarrard commented 5 years ago

Yes there are areas in this game where you will get 20fps or near abouts regardless of resolution and likely graphics settings. I wonder if the game has fundamentally broken screen space culling going on and is rendering way more then it should in areas.

In fallout4 the screen space culling was a game map placed entity which is a ultra lazy way of optimization, chances are the same is in FO76 since its a direct copy-paste from FO4. (and skyrim for some parts).

@doitsujin do you think that the problem related to using bEnableEnlighten can be fixed with DXVK? now that it seems people have isolated the exact 1 setting that causes the color overlay mismatching.

doitsujin commented 5 years ago

@jarrard Unfortunately that information is not as useful as it might look like. Enlighten works fine in other games that use it, no idea why it doesn't in FO76, and it is extremely hard to figure out where exactly things are going wrong.

Taraluktus commented 5 years ago

Is the red tinting still a thing? Just bought the game yesterday, installed it in Windows, and started it with a fresh prefix (corefonts, xact, vcrun2015). Didn't change the .INI files, but the game runs nevertheless without red tinting.

Maybe someone who previously had red tinting with an older game version could test this, with bEnableEnlighten = 1 ?

beniwtv commented 5 years ago

@Taraluktus What GPU do you have? For me, on AMD the red tinting also doesn't happen.

Taraluktus commented 5 years ago

LLVM 8, Mesa 19-dev, with RADV (RX 480) Ah, I've misread your comment from Nov 23. Really seems to be NVIDIA only.

ZachBacon commented 5 years ago

Perhaps in a dxvk conf for the game, spoof an amd card and see about it. Just out of curiosity.

Riesi commented 5 years ago

AMD is spoofed by default since commit 5d49644cdc071866c5556997a35bd946d7724457

ZachBacon commented 5 years ago

Oof. There goes that idea then.

jarrard commented 5 years ago

See last post, was due to a illegal dxgi file in fo76 folder. XACT audio still not working but that's a wine issue.

Taraluktus commented 5 years ago

@jarrard Have a look at https://appdb.winehq.org/objectManager.php?sClass=version&iId=37459 Issues concerning WINE should probably go there, since game (not launcher!) runs pretty well&stable with DXVK.

jarrard commented 5 years ago

SIGH,

I had a custom dxgi.dll file in my fo76 folder this whole time, facepalm......

Still yet to get sound working but its a start.

UPDATE: For anyone who cares, I got sound working with FAudio installation, it required a bit of work because 50 dlls were not symlinked during setup but now I have sound :+1:

jarrard commented 5 years ago

Water does show as white for me so far. Seems odd. I tried to take a snapshot of it using ingame tool but it crashed to desktop. So maybe that doesn't work.

Setting the water quality on LOW fixes the issue, not sure why medium has issues. Haven't tried HIGH. As a matter of fact water looks allot better then even windows now, lmao.

Also one other small issue I was wondering if anyone knows a workaround for tab key being disabled when to alt-tab to other windows then back to game? Don't think its a DXVK related issue but could be, dunno.

jarrard commented 5 years ago

Just thought I mention this here and see if anyone else has this issue.

There is instances where light sources flicker in this game, I don't remember those happening under windows, basically cabin lights etc will flicker depending on angle you look at them. Might be a issue?

ZachBacon commented 5 years ago

Just thought I mention this here and see if anyone else has this issue.

There is instances where light sources flicker in this game, I don't remember those happening under windows, basically cabin lights etc will flicker depending on angle you look at them. Might be a issue?

Nah, that actually happens outside of dxvk using the native renderer even on windows

ntropy83 commented 5 years ago

On Nvidia I had to set bEnableEnlighten=0 to get rid of the red tint and iPresentInterval=0 to get rid of vsync, cause that caused micro freezes every 10 seconds. Then I had to use libstrangle from gitlab to limit the fps otherwise the game would crash.

Tried on AMD now with a Vega 64 and it runs out of the box. Only have to set bBackgroundMouse=0 to capture the mouse but Nvidia had that wine issue too.

The lutris installer btw works flawless, game runs Platinum for me.