misyltoad / d9vk

A Direct3D9 to Vulkan layer using the DXVK backend. [Upstreamed to DXVK]
https://github.com/doitsujin/dxvk
zlib License
833 stars 42 forks source link

GuildWars 2 Black Screen & Crash #21

Closed ronoverdrive closed 5 years ago

ronoverdrive commented 5 years ago

On Windows 10 the 64bit client gets stuck on a black screen while on WINE it gets to the character select screen and crashes. The 32bit client was not tested.

Software information

GuildWars 2 64-bit client

System information

Apitrace file(s)

Log files

jrugia commented 5 years ago

The game no longer crashes when using the latest build. Using the lowest settings it's able to get in game.

https://i.imgur.com/VPF2EE1.jpg

ronoverdrive commented 5 years ago

I can get in game now, but everything even on lowest settings is a blurry mess for me to the point its still unplayable.

https://i.imgur.com/y6hWCqk.png https://i.imgur.com/AHmLG4A.png

Vildravn commented 5 years ago

I can also confirm the game doesn't crash anymore on 21ab453

The lighting is glitchy at the moment, flickering when the camera moves, the mouse movement feels somewhat off, with Depth Blur on, the game is a blurry mess, but aside from that, I can use the highest settings, even turn on supersample and it still works :)

Great progress! gw022 gw023 gw024 image

ronoverdrive commented 5 years ago

Man I wish my experience was that good. Good call on the Depth Blur that cleared things up, but my perf is trash maxing out at 20FPS.

logan001 commented 5 years ago

same as @Vildravn but only have 11-15 fps where i get 23 with normal wine and i think around 40 fps with windows. but at least it started to work. keep up the good job

Screenshot from 2019-04-22 16-24-52

i don't like that graphic. But these HoT maps demands more resources. on a simpler map i get frametime 30-35 and around 30fps

some skills seems to not render at all.

Vildravn commented 5 years ago

Decided to try a few more locations. Links this time to not spam this thread with too many screenshots :) While it's not 60fps everywhere, there IS a significant difference between d9vk and no d9vk and it "feels smoother" over-all with d9vk.

Highest settings with d9vk https://i.imgur.com/42klmg6.jpg https://i.imgur.com/m6HGT6u.jpg (I think the Charr is supposed to be green :D ) https://i.imgur.com/xvAkb1s.jpg

Tweaked settings with d9vk https://i.imgur.com/BfjqNjf.jpg

Highest settings without d9vk https://imgur.com/2eVM8zw.jpg

Tweaked settings without d9vk https://imgur.com/mqOidre.jpg

All Fedora 29, Wine tkg-4.5 from Lutris. No Windows here, sorry.

misyltoad commented 5 years ago

@Vildravn Did you disable logging? For lots of games thatd have a big impact at this stage of development

Vildravn commented 5 years ago

@Joshua-Ashton Ah, good point, looks like that improved the framerate a little. Probably can't play with Supersample on with a reasonable performance everywhere but I can live with that :) If it wasn't for the flickering and some issues with the blur (The same thing as with Depth Blur on/Adaptive lighting off appears in other situations, like conversations) the game would be very playable. Amazing job! :)

jrugia commented 5 years ago

@Vildravn That's some nice testing you did there, everything considered there already seems to be some form of improvement over OpenGL.

@Joshua-Ashton Keep up the great work, I can't believe how far the project has come in such a short time. Thank you!

logan001 commented 5 years ago

the light seems to be fixed. i see no issue with depth blur anymore. my character head is no longer translucent but there are some rendering issues d9vk Screenshot from 2019-04-28 09-05-38

and without Screenshot from 2019-04-28 09-02-16

d9vk Screenshot from 2019-04-28 09-54-39

and without Screenshot from 2019-04-28 09-55-46

i have no clue how to use apitrace. here is d3d9 logs

yaomtc commented 5 years ago

Been testing the game today (Ryzen 1700X, RX 580). Had a few crashes, and there is the stutter. Also, the game only works with Shaders set to Low, not Medium/High. Aside from all that, though, the game works surprisingly well! Amazed to see such high max fps (never got up past 50 this often with my settings), looking forward to the kinks getting worked out and getting smooth framerates eventually!

I tried apitrace but I couldn't figure out how to use it either. It does have instructions, but first I'd need to figure out how to run Wine with D9VK from the terminal and switch it off and on... I've been using Lutris for that, and putting the apitrace command into "command prefix" doesn't work.

misyltoad commented 5 years ago

@logan001 Can you check if the texture alpha/cutout issues are fixed in latest for you?

yaomtc commented 5 years ago

I think so far all the crashes I've had happened shortly after entering one of the newer maps, in the Crystal Desert region in particular. "Map load hang on STATE_MODELS_STREAM detected" is I think what caused the crash, maybe, see gw2-crash-dump.txt

EDIT: That might not have been what caused the crash before, as this crash ) doesn't have that message.

logan001 commented 5 years ago

@logan001 Can you check if the texture alpha/cutout issues are fixed in latest for you?

the problem is almost fixed. the alpha seems to have some problems on HoT maps. i've made a trace. You can download it from here also look to the ground texture. Im guessing there are 2 ore more texture mixed together and only 1 is rendering. this issue is present on other maps too.

logan001 commented 5 years ago

Been testing the game today (Ryzen 1700X, RX 580). Had a few crashes, and there is the stutter. Also, the game only works with Shaders set to Low, not Medium/High. Aside from all that, though, the game works surprisingly well! Amazed to see such high max fps (never got up past 50 this often with my settings), looking forward to the kinks getting worked out and getting smooth framerates eventually!

I tried apitrace but I couldn't figure out how to use it either. It does have instructions, but first I'd need to figure out how to run Wine with D9VK from the terminal and switch it off and on... I've been using Lutris for that, and putting the apitrace command into "command prefix" doesn't work.

probably the video driver is the issue. seems that nvidia has no problem with this game. try both drivers (open/close) for ati. from what i can understand proprietary ati drivers has better vulkan support than mesa drivers.

to add d9vk to wine prefix i do this (for every new d9vk i download) env WINEPREFIX=~/winetestNN winecfg to create all wine folders/etc in home/winetestNN folder. then env WINEPREFIX=~/winetestNN ./setup_dxvk.sh install to add d9vk to the new wineprefix then env WINEPREFIX=~/winetestNN DXVK_HUD=full wine64 /path/to/Gw2-64.exe you can adjusts the paths as you wish. for apitrace took me a while to figure it out you have to download windows binaries (there is a link on the git page to download msvc binaries) than run the game like wine /path/to/32or64bits/apitrace.exe trace -a d3d9 /path/to/game.exe to continue the exeample env WINEPREFIX=~/winetestNN DXVK_HUD=full wine64 /path/to/64bits/apitrace.exe trace -a d3d9 /path/to/Gw2-64.exe edit: forgot to mention that the trace files goes to wine desktop which is ~/Desktop by default (in my case). You probably can adjust the path but i didnt bother.

logan001 commented 5 years ago

finally the ground texture is fixed (ab57adc) also i think there is 2-3 fps more on that complex map and more on character selection screeen of course is still way slower than normal wine. FOR NOW.

now the alpha problem is still there for some textures. Screenshot from 2019-05-03 21-39-52 Those leafs has 2 alpha textures? im not sure. one on top that renders well and another on the buttom that does not work as i marked on the image. i thought that this kind of problem is only on HoT maps but there are other places in old maps that has same problem. not as many as HoT maps

Tk-Glitch commented 5 years ago

@logan001 What do you mean by of course is still way slower than normal wine? What's slower? I mean, on my hardware I get ~50fps avg with wined3d and ~140 with D9VK. Did you disable logging? If you didn't, you might want to export DXVK_LOG_LEVEL=none.

logan001 commented 5 years ago

i get 25 fps normal wine staging and 15 fps d9vk (as you can see on the screenshot and thst is not looking on the hole valley) these fps are at best appearance and uncheck the depth blur effect full screen (1920x1080). of course i get higher fps on less demanding maps but not that high. around 30-35fps at most with d9vk. DXVK_LOG_LEVEL=none has no effect or i can't see any effect on fps in hud. l'm using wine staging 4.7 standard from wine repos on linuxmint cinnamon.

Tk-Glitch commented 5 years ago

@logan001 That sounds very wrong that you're seeing no difference. Logging is enabled by default in D9VK for now and can easily eat 70%+ of your frames on some games at this point.

logan001 commented 5 years ago

well i'm on arch now and i have same fps. no difference with or without logs. any other suggestions are welcome i thought that maybe my graphic card its working on lower pcie speed but nvidia report gen3 16x. nothing wrong there. on arch i have newer version (418.52.03) of beta driver than on linuxmint. but the performance are the same

misyltoad commented 5 years ago

well i'm on arch now and i have same fps. no difference with or without logs. any other suggestions are welcome i thought that maybe my graphic card its working on lower pcie speed but nvidia report gen3 16x. nothing wrong there. on arch i have newer version (418.52.03) of beta driver than on linuxmint. but the performance are the same

Any specs of your system?

misyltoad commented 5 years ago

Yeah, maybe also try deleting your state cache

logan001 commented 5 years ago

r7-1700x (no overclock) 32 gb ram at 3Ghz 970 GTX nvme disk for linuxmint sata 3 ssd for arch i just realize something. my game is on ntfs partition (same ssd as arch). now i'm copying it on ext4 partition. not sure if this changes anything.

misyltoad commented 5 years ago

r7-1700x (no overclock) 32 gb ram at 3Ghz 970 GTX nvme disk for linuxmint sata 3 ssd for arch i just realize something. my game is on ntfs partition (same ssd as arch). now i'm copying it on ext4 partition. not sure if this changes anything.

Also, please move this to a new issue given GW2 seems to be working now. :)

Dante4 commented 5 years ago

Unsure if this support Windows, but i don't know why it shouldn't, taking in account required of Wine, so i will post it there. Game crash on startup after 2 sec into character select menu. No matter what i do (move mouse, click to log in to character, switch characters) it crashes after 2 sec with memory problem (i.e. 0xc0000005). Game working normally with ArcDPS and Reshade. If chainload d9vk with ArcDPS, ArcDPS reports about error and crash the game

Software information

Maximum Appearance (i.e. everything on Ultra or High) and Windowed Borderless as resolution

System information

Log files

Gw2-64_d3d9.log gw2 crash report.txt

misyltoad commented 5 years ago

Weird, some people reported this as working recently. Have you updated ARCDPS recently? Can you try an older version?

GloriousEggroll commented 5 years ago

ArcdDPS is working fine here in Wine +D9VK, Vega VII, Latest version of d9vk fixed-function branch and latest version of ArcDPS from Jun 11.

arcdps

DxCx commented 5 years ago

same setup as @GloriousEggroll , works for me too =) Thanks @Joshua-Ashton =)

Dante4 commented 5 years ago

Weird, some people reported this as working recently. Have you updated ARCDPS recently? Can you try an older version?

The problem is that game crashes with just d9vk. Without ArcDPS or anything else

ArcdDPS is working fine here in Wine +D9VK

But I'm using Windows there, that's why i ask is this plugin even support Windows at all

misyltoad commented 5 years ago

idk, people have been using it w/ Windows for a while too.

Dante4 commented 5 years ago

idk, people have been using it w/ Windows for a while too.

Then any version on why game crashes on certain time mark? Tried version linked on reddit (jobs/563) same result

GloriousEggroll commented 5 years ago

D9VK without arcdps also works fine for me in Wine

Dante4 commented 5 years ago

D9VK without arcdps also works fine for me in Wine

Again. Wine is not fully windows. And Windows is not fully wine. That's my problem. I can read and know that this works fine in Wine environment.

GloriousEggroll commented 5 years ago

That's great that you know how to read, however it still needs to be specified that this issue is related to d9vk and windows, and is unrelated to arcdps and wine, in order to narrow down the problem. My comments were to clarify what particular setup does work so that we know it's not entirely broken. Feel free to take your attitude elsewhere.

Dante4 commented 5 years ago

My comments were to clarify what particular setup does work so that we know it's not entirely broken.

What I tried to say is that it's problem with my setup. We do know that this is working with GW2 with wine, because of screenshots just up there. We also know this is working with ArcDPS with Wine from reddit. So the problem is somewhere that's not Wine or ArcDPS. That's why i don't understand reasons behind your message.

GloriousEggroll commented 5 years ago

This.is.not.reddit.

misyltoad commented 5 years ago

Guys, chill out.

I've had someone else test this out and it works fine for them (they were AMD however.)

Looks like it could be your driver? (I have no idea how Windows' NV driver versioning works) so I'd make sure you're up to date on that.

Dante4 commented 5 years ago

I have no idea how Windows' NV driver versioning works

As far as i read my driver's version support Vulkan 1.1 (http://us.download.nvidia.com/Windows/398.36/398.36-win10-win8-win7-desktop-release-notes.pdf), that's right version, right?

misyltoad commented 5 years ago

The Vulkan version is a completely irrelevant and worthless number.

Your driver is massively out of date. Please update it and try again.

Dante4 commented 5 years ago

Your driver is massively out of date. Please update it and try again.

Is this absolutely need? If yes, I hope this advice will help someone if he will get this problem.

misyltoad commented 5 years ago

Nobody else is experiencing your issue, and they're all on much newer drivers.

I'm not going to look into the issue at all if I can confirm it's a problem with your setup, so I'd like to eliminate that.

Is there a reason you need year old drivers?

Dante4 commented 5 years ago

I'm not going to look into the issue at all if I can confirm it's a problem with your setup, so I'd like to eliminate that.

Ok, i will update my drivers after raiding (10-20 mins) to eliminate this probability. Still unsure how this could affect this plugin.

Is there a reason you need year old drivers?

Only two. First is that Nvidia added Spectre\Meltdown patch to their drivers in never versions. Second, MHW is lagging on my PC with newer drivers.

misyltoad commented 5 years ago

Well, if that turns out to be the case, I cannot tell you how much I do not care about supporting year old drivers.

Dante4 commented 5 years ago

Yes, dumb question. But, aren't Vulkan API should be the same across all version (after it included) or dxvk use some specific function that was implemented later?

misyltoad commented 5 years ago

No, because of extensions.

Additionally, drivers get updates to fix issues, hence why I am telling you now for the fourth time to update your drivers as this issue affects nobody else I know who are all using newer drivers.

Dante4 commented 5 years ago

No, because of extensions.

So dxvk use some specific functions that was implemented later?

misyltoad commented 5 years ago

Indeed.

Dante4 commented 5 years ago

Ah, so that's how it is. Well. I'm updating right now. If this fix it, would be great.

Dante4 commented 5 years ago

Welp. Indeed problem with my driver's version. Guess I need to choose what I wanna more. Since there is possible some other idiot like me, may you add "latest driver version" in troubleshooting?

I cannot tell you how much I do not care about supporting year old drivers.

Yes, I can understand this and you shouldn't care about this :) (no it's not sarcasm or anything of this sort)

GloriousEggroll commented 5 years ago

Per the README:

Notes on Vulkan drivers

Before reporting an issue, please check the Wiki page on the current driver status and make sure you run a recent enough driver version for your hardware.

Per the WIKI:

https://github.com/doitsujin/dxvk/wiki/Driver-support

Where idiots are lacking, reddit provides apparently.