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
Guild wars 2 cursor remains on screen and blocks turning camera #66
Comments
Log would be helpful here |
logs |
I had this issue with Wine if I had "emulate a virtual desktop" enabled in winecfg. Do you have this option enabled? If so, try enabling "Automatically capture mouse in full-screen windows". |
@yaomtc I don't have virtual desktop enabled. Enabling Automatically capture mouse didn't help either. |
btw @Joshua-Ashton 6f9a3e6 causes text corruption in GW2. Check it out here. |
Can you see if 1626606 corrects that issue? |
Sure, just waiting for froggi.es to build it. |
No luck. Result |
for me on 0c3c570 it happens like this |
I mean, it doesnt look like garbage anymore -- that's a start. Lemme take another look into it |
@logan001 mouse moving back shouldn't be a glitch, glitch is mouse cursor not disappearing in the first place. Have you tried loading another map? This manifests for me when I change map (e.g. go into fractals lobby) |
yes, after changing maps the mouse does not disappear anymore. except on one occasion when the mouse had no issue |
Sadly, no. I tried it and mouse stays on screen. |
its not meant to be for the mouse, its meant to be for the text |
@Joshua-Ashton it doens't fix it. |
|
I should've filed another bug report for the text 😆 |
also 1626606 does not fix the text issue. if you reopen that window the text seems to be ok |
Yeah it doesn't fix it on it's own, you're supposed to combine it with the d3d9.zip posted in #66 (comment) |
@Joshua-Ashton yes text seems to be ok |
a026a42 fixes text issue. |
I can confirm this exact same behavior, first character works as it should, but if you change it the mouse cursor won't go away. Edit: It seems that the issue is related to the map/zone change, not necessarily character change. So, if you change zone/map, the mouse issue begins. |
Rotating the camera for me doesn't block at the screen's edge for me either. the cursor issue is present as everyone else. |
@garpu have you tried changing maps? |
I take that back. It was fine when I loaded a map, then when I zoned elsewhere, it's back. :/ |
Issue: Issue only happens after a loading screen after initially loading in the game. Issue does not happen if you have the mouse cursor hidden when initializing the loading screen (ex: If you have action camera enabled which hides the mouse cursor or if you hold down the left or right click and you walk through a portal) Attempted fixes:
System:
Edit: This does not limit the camera rotation for me |
Good catch. If the bug triggers even once then this trick doesn't help anymore. |
Update: camera turning blocking in my case is caused by sway (the wayland window manager). It constrains the cursor to a screen with the game. Running the game under kwin leads to cursor remaining on screen during camera turning, allowing more than one rotation around the character axis and it does warp back to where it was when the drag option was initiated. |
I'm tracking @Joshua-Ashton's commits every day and testing every build. He's making huge progress and hopefully his work enables d9vk on more games. A cursor glitch in one game isn't really a priority when there are so many reports about games not working or crashing. |
well, i have alot of technical knowledge/experience, not in 3d or gaming, but in programing in general. (both low level (c/asm (not only x86)) and high level) |
Just tried KDE 5.15.90 (5.16 beta) wayland session. Mouse blocking issue is present with kwin_wayland as compositor as well. |
Ok since i really want to make GW2 works good with d9vk i started to read abit around and get into how d9 and graphic works. (still very young tough XD). anyway, as first step i've dumped an API trace file that should reproduce the problem:
Next using Edit: |
@DxCx When opening an issue here, this is printed out in the template: Important: When reporting an issue with a specific game or application, such as crashes or rendering issues, please include log files and a D3D11 Apitrace (see https://github.com/apitrace/apitrace) so that the issue can be reproduced. In order to create a trace, run |
Exactly what i did, this is raw apitrace with no DXVK |
From my experience with D9VK so far, this isn't just a GW2 issue, I've encountered the issue with a few other games too, and some issue reports mention it too. Fixing this will probably fix other games too. |
@jrugia can you list those other games? |
If @Joshua-Ashton or anyone else who is more familiar with d9vk can throw me some hints i would be glad to help fix it out. |
@DxCx try to apply this patch to wine. Basically, there is a check in wine to rate limit applying fullscreen mouse clipping. This patch partially removes the check. |
Awsome! Thanks for the tips @AlexeyProkhin :) |
I dont have a windows system myself so i cant confirm it, I mean, wine rate limit makes sense to blame, but if it is the culprit then the bug shouldnt happen on windows |
sorry for late response. just for info i've tried both Cinnamon and KDE and both allow me to rotate the camera even thought the mouse will stay at the edge of the screen. |
this "bug" does not happen in windows. i think this bug use to be present a long time ago in wine (before x64 version of GW). but i'm not sure if its the same bug as we have now. |
Aside from GW2 there are: Crysis |
Ok so thanks @AlexeyProkhin. I've never compiled wine before so it took me abit to get it working, but i was able to clone and compile wine-tkg 4.6 (and make sure game works the same before the patch) after that, i've ported the patch and placed it with However, after applying the patch the problem still exists. |
@DxCx Sorry to hear the patch did not help. You could also try to apply another proton patch as well. |
@AlexeyProkhin ive added this patch as well, nope, still doesnt work.. |
@DxCx cursor and x11drv probably. But it does not seem to be an issue I had in mind. So maybe it is in totally different place. I don't know the wine (and d9vk) codebase well enough to make another guess. |
@AlexeyProkhin do you have amd card? |
@logan001 , no. Why do you ask? |
i was curios if it that fix it for you then maybe its a problem of drivers. |
Just FYI: Playing the new map without d9vk caused OOM killer to kill gw2 twice tonight, it's leaking memory it seems (filled my 16gb and I have no swap). Under d9vk it doesn't leak and overall seems memory usage is lower. |
Is this fixed in latest master? |
It is now fixed for me. Thanks, @Joshua-Ashton! |
It is also fixed for me in master, thank you @Joshua-Ashton! |
Awsome news @Joshua-Ashton Edit: |
cool |
Oh my God it works. Thank you so much! ❤️ |
Guild wars 2 uses right click to start turning the camera. Typically cursor disappears and you are free to rotate the camera as many degrees as you want. If d9vk is used, cursor remains on screen and rotation is limited by cursor hitting the screen left or right edges. Game also has action camera mode in which cursor also disappears, again not the case when d9vk is used. Cursor remains on screen and limits the turning by bumping into screen edge and staying there. Is this the relative cursor/absolute cursor issue? I didn't provide any logs because this isn't a crash. I'll be happy to provide them for you should you need them.
Sometimes the bug only manifests when a map change happens (works on the initial map, breaks when you change zones)
Software information
Running Guild Wars 2 64 bit on Archlinux
System information
The text was updated successfully, but these errors were encountered: