Skip to content

Instantly share code, notes, and snippets.

@ryleu
Last active May 31, 2023 07:44
Show Gist options
  • Save ryleu/aaef41c71dddd612c6bcf118c7870149 to your computer and use it in GitHub Desktop.
Save ryleu/aaef41c71dddd612c6bcf118c7870149 to your computer and use it in GitHub Desktop.
OW 2 on Linux

This guide is completely irrelevant! You no longer need to follow anything here—doing so may actually harm performance rather than helping it. Please tell whoever linked you here that they need to maintain their own guide, if they want to help people set up newer versions of DXVK / etc.

@ryleu
Copy link
Author

ryleu commented Oct 9, 2022

@UnfuntionalLadder we’re working on a solution, I’ll let you know once we find one.

@PoSayDone
Copy link

PoSayDone commented Oct 10, 2022

@ryleu You don't seem to understand. I accept that changing DXVK will reset the cache. That is NOT what is happening here. The shader cache straight up- does not work on OW2. You will go thru the stuttering all over again, on subsequent fresh boots into the game, as 3D elements slowly pop into view, despite your shader cache already sitting in the wine folder.

For whatever reason on Steamdeck- the shader cache for OW2 isn't working right.

yep, I'm having the same problem on my laptop.

@darkuni
Copy link

darkuni commented Oct 10, 2022

For clarity, this solution doesn't remove the initial cache loading required (13 minutes) when you boot the game, correct? I'm on Steam Deck and every boot requires a long compile session. Thank you!

@Conzar
Copy link

Conzar commented Oct 11, 2022

The caffe runner does not work in Ubuntu 20.04 using the ppa for lutris. I read somewhere about using flatpak but that runs impossibly slow (1 frame per second). Any ideas?

@Conzar
Copy link

Conzar commented Oct 11, 2022

The caffe runner does not work in Ubuntu 20.04 using the ppa for lutris. I read somewhere about using flatpak but that runs impossibly slow (1 frame per second). Any ideas?

For anyone using Ubuntu 20.04, you can download the caffe version built on 20.04 from here.

@ryleu
Copy link
Author

ryleu commented Oct 11, 2022

@darkuni that is correct. it removes the ongoing stutter after the “compiling shaders” message in the bottom left goes away

@ShvalevWS
Copy link

In summary, if someone got random crashes, you can try to disable both esync and fsync and clear the cache of shaders. In my case it removed all random crash issues. I launched the game for 24 hours and still 0 crashes for a week.

@PoSayDone
Copy link

Is there any progress with recompiling shaders issue?

@PoSayDone
Copy link

DXVK Async don't work for me

@ryleu
Copy link
Author

ryleu commented Oct 26, 2022

@PoSayDone no, not at the moment. i’m also still working on compiling data for the memory leak issue. things have slowed down quite a bit, and GE and the others still haven’t gotten a chance to look into what’s going on, afaik.

edit: dxvk async doesn’t mean you don’t have to compile shaders. all it does is reduce the performance of compiling shaders while you play.

edit2: i stand corrected. there are people (who are much smarter than me) working on it :)

@darkuni
Copy link

darkuni commented Oct 26, 2022

@Miltonr87
Copy link

Miltonr87 commented Oct 30, 2022

Oh boy, no way, I'm switching to Windows to play in this time

@ryleu
Copy link
Author

ryleu commented Nov 1, 2022

@Miltonr87 it has been working for a while. the guide is actually fairly straightforward at this point, you only need to download and extract one extra thing.

@darkuni
Copy link

darkuni commented Nov 1, 2022

BTW, this is fixed with GE. Right now, only Wine (Lutris) version is available, but I tested it myself. It works. No shader issues for 13 minutes, no crash. I'm waiting, personally, for the Steam GE Proton version to be released this weekend so I don't have to use Lutris, Bottles or anything other than a simple non-steam game entry.

@Miltonr87
Copy link

it has been working for a while. the guide is actually fairly straightforward at this point, you only need to download and extract one extra thing.

Thanx mate!

@ryleu
Copy link
Author

ryleu commented Nov 2, 2022

@darkuni fixed

@Miltonr87 you now pretty much don't have to do anything extra

@ziomek64
Copy link

Is it normal to have cache recompiling each time I start the game? dxvk 2.0 async

Is there something worked on to fix launcher startup to have it launch each time normally?

@bruwyvn
Copy link

bruwyvn commented Nov 20, 2022

It seems that async shader compiling do not work with this setup, did it on Bottles and its running much better

@bruwyvn
Copy link

bruwyvn commented Nov 21, 2022

I think its not supposed to stutter when async is working, just is to pop the shaded models in the screen instead.
If the message "Compiling shaders" appears on the game, then dxvk-async needs to reinstalled/troubleshooted

@ryleu
Copy link
Author

ryleu commented Nov 22, 2022

@bruwyvn that is correct. You can use the environment variable mentioned in the guide to make sure DXVK Async is working. Make sure you also have DXVK_ASYNC=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment