New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framerate is similar or lower with AMD (Mesa) on Guild Wars 2 #11
Comments
Can you try with Mesa master for comparison too? |
The latest version of Mesa available on Solus currently is 18.0 RC4. Having installed that, the fps is about the same. Also tested WoW just now. Getting about a third of the framerate I do with regular wine-staging 2.21. Would there be any logs I could provide that would help? |
Can you try my build from a few days ago? Link: https://drive.google.com/open?id=1rKlHUTgNEBEzbkgmuRoV-Krf6k-UVW5- I'm currently running that, and the performance with Nvidia is amazing, no more stutters, Tequatl event keeps it's cool with 25-40fps. You can find my complete settings in this GoL thread: https://www.gamingonlinux.com/forum/topic/3199/post_id=14579 Unless you're running Wine-Gallium-Nine, don't bother with anything higher than Wine Staging 2.0 for GW2, the game took a nose dive since Wine 2.1 onwards, by as much as 15-30 fps. This is the picture I took some time ago as posted in the WineHQ bugs report: https://bugs.winehq.org/attachment.cgi?id=60162 For the record I tested the above theory on my laptop with Intel HD and the result has been the same, So the improvements don't seem to be limited to Nvidia. Tomorrow I will try it again on that laptop with PBA and report back. |
@Armored87 Hi, I'm a bit curious about your Staging 2.0 note. I noticed a long time ago that when I was using laino's Wine patches, GW2 was fantastic on 2.0, but I also noticed that applying the same patches on anything newer wasn't quite as-nice (performance was a bit lower). Question about the build at that GDrive link; is it Wine 2.21 with just the pba patches and Staging? Any other patches? And on the same note, do you (or anyone else) know if the current pba patches apply or do anything useful for Wine + Staging 2.0? |
Wine Staging 2.0 has is much faster for DX9 + CSMT then any version of Wine afterwards. This was for every DX9 game I have. I have even maintained a branch for WoW2.0 with the ntdll patches myself for this very reason. But now at least for Nvidia pba is now faster. I haven't tested applying pba to Staging 2.0, since I just want DX11 now. Let us know your results if you try though. |
The build is Wine 2.21 Source + Staging 2.21 Patches + PBA from a few days ago, built on Debian 9.3. I run the game though on Mint 18.1. EDIT: I tested the game on my laptop: i3-5005U, 16GB Ram, Debian 9. Framerate is the same and it seems to me that with 2.21 PBA it stutters a bit more. There's a long time question I never had the chance to ask to a GW2 Linux user with AMD: Does the game run if you set UseGLSL to "disabled" in Wine regedit? With Nvidia I can run the game with this disabled but with Intel Mesa the game refuses to run unless it's enabled. I will be running a few more tests today with GW2, particularly on systems with 8GB RAM and desktop i5 CPU's. |
@Armored87 With GLSL off on NVIDIA (at least in the past with several Wine versions and Staging 2.21), one strange bug I noticed is that grass and plants spin and move when they shouldn't; pretty noticeable in Queensdale. I don't believe I've seen any notable performance improvement with GLSL off. @IngeniousDox Hmm, which ntdll patches were you referring to? laino's? |
@Armored87 With that build, Guild Wars 2 actually does get a noticeably lower fps (~22 fps) than the regular Wine Staging 2.21 (~37 fps). Was standing in the same spot in Metrica Province. EDIT: Just redownloaded the pba build from Lutris, that version also gets ~37 fps in that spot. |
@Espionage724 I never noticed that in Queensdale, can you tell me in which particular area you've seen it? Also I seem to have missed your question about PBA and Staging 2.0. I never tried but I guess I could check, right now I'm in the process of migrating my compiling environment to a better system, building both 32 and 64bit Wine with my current (Core 2 Q6600) system takes me over an hour. I will also be running the aformentioned test on the i5 / 8GB system. @yaomtc Is the build from Lutris using the latest PBA? |
@Espionage724 awesies (to counter Blizzard DRM) and a couple of others so WoW worked with staging 2.0. |
Forgot to answer this, @Espionage724. "Use GLSL" is actually available under "runner options" in Lutris. The GW2 wiki recommends disabling that option, but personally I don't notice a difference. Disabling it might give it 1-2 extra fps, maybe. That advice might be outdated, or might be Nvidia specific. (A lot of Linux gaming advice is Nvidia specific, unfortunately...) @Armored87 I don't know what build Lutris provides, I can only tell you I deleted it and downloaded it again less than an hour ago with about the same fps as the unpatched 2.21. |
Disabling GLSL was indeed a fps increase for Nvidia at some point. But
Nvidia fixed that issue a long time ago, and GLSL is now done multithreaded
aswell. I don't see any difference anymore with or without it either.
…On Wed, Feb 28, 2018 at 6:02 PM, yaomtc ***@***.***> wrote:
There's a long time question I never had the chance to ask to a GW2 Linux
user with AMD: Does the game run if you set UseGLSL to "disabled" in Wine
regedit?
Forgot to answer this, @Espionage724 <https://github.com/espionage724>.
"Use GLSL" is actually available under "runner options" in Lutris. The GW2
wiki recommends disabling that option, but personally I don't notice a
difference. Disabling it might give it 1-2 extra fps, maybe. That advice
might be outdated, or might be Nvidia specific. (A lot of Linux gaming
advice is Nvidia specific, unfortunately...)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYCO32W1QuLQ4MHVoYFE1RPoyLafx5vFks5tZYSNgaJpZM4SVyA0>
.
|
Long Post Beware: I Ran the test with GW2 on an i5-4590 / 8GB Ram / GTX 960 384.111 / Using latest PBA. Didn't notice any performance loss compared to my previous build. To say I went from 16 threads Ryzen 1700X to a quad core, the fps difference was minimal, in action areas such as fractals it did quite well at keeping that 42+. I'm very happy with the results. I've also did Tequatl tonight with the i5 system, the frame rate was pretty good considering the amount of players during that event. I didn't experience any stutters even when the fps was down to 20, average 25-30 during the event. Usages throughout the tests: CPU: About 45% on 3 cores, 100% on the 4th. The Highlight of this build: The ram usage went down by at least 1GB and the at the end of the test the total difference compared with the old one was 1.4GB, meanwhile the performance remained the same for the most part (I did notice a slight fps increase with the Ryzen build though). The cores are also being utilized better, before with Staging 2.0 it was 2 cores at like 100% while the other 2 relaxed. So without further ado, here's the new build: https://drive.google.com/open?id=1TdFwaZ7juoiPawa9d2TCz3i7xZ9vswmR |
The patches don't apply as-is on Staging 2.0 for anyone interested; could probably rebase them to apply though. I have a new wine-pba build going up on my Fedora Copr with commit 68de8e9 |
@Armored87 Here's a video of the grass at Vale Waypoint with GLSL disabled: https://hooktube.com/watch?v=COwIQ63-ZwU (or YT) |
@Espionage724 Thanks for the video, I get what you mean now. It's as if the grass animations move about 2-3 times as fast. GLSL enabled brings them to normal speed however I noticed some stutters, more noticeable when moving the camera, particularly in LA where it's CPU heavy. This might be the answer why some animations in other games appear too fast. For GW2 however the stutter is a bit annoying, I'll have to leave it disabled and pretend it's a windy day in Tyria. |
It's good to have more data, y'all, but this report is about performance with Mesa, not with Nvidia. Or should we really just treat this as a general Guild Wars 2 Performance Thread? |
Performance with Mesa is one major use case, so this bug is about it. |
It would be helpful to get the following data to better understand the issue, as I don't have an AMD card:
|
I did do the former (included WoW and Deus Ex HR too for the heck of it, both of which were very heavily impacted in fps), but I don't know how to use perf. It just gives me a segfault when I try to run wine with it. |
Realized I had to run |
Thank you very much! Your logs indicate that we're going through the right code paths for persistently mapped buffers- I suspect either fence testing or issuing is slow here, since those are the only new driver calls introduced by this patch (after PBA initialization, of course). If it's not that, then it's likely to be buffer storage issues (i.e. mesa/gallium isn't putting our persistent buffer where we want it to be). Can you try revision 27fc725 when you get a chance? That should greatly reduce the volume of fences, and normalize behaviour across games. It'll likely improve performance for NVIDIA users as well. |
Sure, but I've just been grabbing the latest build Lutris provides, since it's an easy way to get the pre-patched binaries. On the downside, I have no idea what revision I'm getting from it, or how long it would take for their build to be updated. |
Whoops, you're likely going to want to try 34a2a05 instead.
If that doesn't fix your issue, you're going to want to use |
Additionally, if anyone could test 1bc7015 on radeon, that would be great. A brief look at the radeon gallium driver suggests it may help with streaming. |
Another Guild Wars 2 player checking in! I have not gotten any increased performance but it seems that everything is alot smoother, less frame spikes overall? I would like to help. I'm not a seasoned command-line guy and a generally newer Linux user but I want to help. I'm on Solus. I have slightly different hardware than the OP... RX 580 w/AMD Ryzen 1600X and I get average of 19-23 FPS in open maps. At the log-in screen with -dx9single argument I get 63 FPS. |
@PadreAdamo 19-23 is fairly low for that hardware specs, Can you post a screenshot of your in game graphics settings? |
@jrugia Everything is at High/Ultra EXCEPT models on screen is set for "Lowest" but using the "Highest" quality models. I'm also on a resolution of 4000x1170 (across three screens). I'm all ears on helping me get better FPS though :-) |
I'd turn Shadows to Low, that has a significant impact on performance, I've found. |
@acomminos I will give it a more in depth test tomorrow. |
@jrugia I managed to get to 30+ FPS in most areas and 60+ in (SPVP) by adding the following: Thank you :-) |
OpenGL is already the default option: https://wiki.winehq.org/Useful_Registry_Keys Setting the value for VideoMemorySize didn't seem to make a difference for me. What's SPVP? |
@yaomtc SPVP is Structured Player vs Player :-) Just tried latest PBA with Wine 3.3 Staging. Performance is significantly worse on Nvidia: https://i.imgur.com/c9hQMXu.jpg Can anyone with AMD test this please? 3.3 Build: https://drive.google.com/file/d/1Oc57KEzp1bfOW_lQE2dw2ksZJpkhzFL2/view?usp=sharing Old 2.21 Build: https://drive.google.com/file/d/1TdFwaZ7juoiPawa9d2TCz3i7xZ9vswmR/view |
Edit: I'm on NVIDIA, but this might be useful info regardless. It seems wine-pba (4b64220) increases GPU usage a lot, but I'm not entirely certain it's helping average FPS. Vanilla Wine 3.3 currently has better overall performance. Staging 2.2 + an older commit of wine-pba provides the best performance by a good bit. Here's some testing results in a few places in Queensdale (teleported to the WP and left camera facing in default location, little-to-no other players in-front of the camera): Water Pipe Vista (looking towards Shaemoor Garrison)
Orchard Waypoint
Claypool Waypoint
Swamplost Haven Waypoint |
@Espionage724 If you have __GL_THREADED_OPTIMIZATIONS=1 with Wine-PBA 4b64220, you might want to try without it. In D3/WoW my fps was down because I had it on, turning it off increased my fps again over previous builds where it was still helping. |
@IngeniousDox I turned it off; I did a clean Fedora install a few hours ago and noticed that GW2 had more hitching with it enabled. Seems like it makes generating the texture cache (on NVIDIA's end) much worse, but it might be ok once all textures are pre-compiled. But since it doesn't offer much of a performance difference or drop in CPU usage, it's probably better off. I also added my 2.2 Staging + pba results to the above post; seems like there is some kind of regression from that point and now. |
I'm curious- can you skip applying the patch |
@Espionage724 Correct, since you disable __GL_THREADED you also disable multi threaded creation of shaders. Filling the shader cache will be slower. |
@acomminos I was having a hard time getting Copr to start a build without that patch, but it looks like it's building right now. I'll get some performance numbers in about an hour with all patches up to commit 4b64220, and 0003-wined3d-Use-ARB_multi_bind-to-speed-up-UBO-updates.patch excluded. In the meantime however, I did testing on an older version of Wine I had. The build was done sometime between 27fc725 and 34a2a05 and I added the FPS/GPU usage to the above #11 (comment) post. Basically it seems to be pretty similar to 2.21. |
@acomminos Excluding 0003-wined3d-Use-ARB_multi_bind-to-speed-up-UBO-updates with the latest commit didn't change anything (GPU usage is still 100% with lower FPS) |
Hm, alright- thanks for testing that. If you have the time, I'd be interested in whether or not skipping Also, if you're getting any interesting WINEDEBUG output related to buffer allocation, that would be good to know. |
@acomminos Excluding |
Bizarre, but good to hear. What NVIDIA driver version are you using? |
390.25 |
Is there any interesting WINEDEBUG output (particularly pba-related under the d3d_perf channel)? On my machine (NVIDIA), |
I did about 30 second with d3d_perf with that patch enabled (high GPU load, low FPS): https://paste.ee/p/PhaRQ And here's without the patch (low GPU load, high FPS): https://paste.ee/p/WxSLZ |
I'm also on an Optimus laptop; I have the typical NVIDIA driver set-up (no Bumblebee, render-everything-on-NV-GPU). |
@yaomtc I think my results were due to a placebo effect and possibly amount of people logged into the area (Mistlock Sanctuary). I overclocked my RAM from 3200 to 3833 and I got dramatic improvement. I'm going to bump to 4k tonight. I went from 30 average to roughly 43 average. |
@Espionage724 I really really must ask you, is it possible to always run such a laptop with the Nvidia GPU only? Let's say I don't care about the battery life but I prefer that than running it through Optimus/Bumblebee, also would it still be possible even if you can't turn off Intel HD from the bios? |
@jrugia With my comment, I meant that I have the Intel iGPU enabled, but it has acceleration disabled and everything is accelerated with the NVIDIA dGPU. I have a modded BIOS that does allow me to disable the Intel iGPU, but it stop the built-in laptop display from working. Even with a display attached to the HDMI port (which is wired to the NV GPU), nothing displays on it until late-stage booting of an OS (so no BIOS, GRUB, and about half of the Linux boot process is displayed). |
@Espionage724 For a moment I had hope that a modern laptop existed without the Intel-Nvidia passthrough. Unless it's an older laptop I'd rather not experiment with bios flashing, in the case something goes wrong, it's a time consuming task to de-solder, reflash and re-solder the chip. Thanks for the explanation, glad to know it's possible in some way though. :-) |
Slowness on AMD cards is highly likely due to |
Is anyone working on fixing it in Mesa? |
I've noticed significant improvement in AMD performance with WoW when compared to Wine Staging, just not with this game for some reason. (GW2's poor optimization compared to WoW is probably a factor.) Though I haven't tested in a few weeks. |
Well have you tried this on mesa and amd lately, @shmerl? It's had great performance for quite some time now. :) |
The golden metric should just be windows performance, not game vs game. Also, maybe you could point out some other free test case on the bugzilla. |
I tried it recently (with The Witcher 3). Performance was very bad. |
Now I get a huge framerate boost with PBA enabled VS not, in Guild Wars 2. Probably has to do with Mesa improvements since last time. |
Using a Radeon RX 580 with an Intel i5 4690k, with Linux 4.15.6, Mesa 17.3.6, and the pba-2.21 build from Lutris 0.4.14. With a static camera angle and position, performance is right around 36-40 fps in unpatched 2.21, in pba 2.21, and in Wine 3.1. All options in Lutris are set to the default, except Lutris runtime is disabled.
The text was updated successfully, but these errors were encountered: