FFXIVQuickLauncher icon indicating copy to clipboard operation
FFXIVQuickLauncher copied to clipboard

[Flatpak] Game starts lagging after a while

Open LordBrainless opened this issue 2 years ago • 46 comments

Update disclaimer

  • [X] Yes, I have checked and my issue is not related to the game updating and plugins not working correctly.

What did you do?

I switched to XIVLauncher a while ago, when the normal launcher wouldn't start any more after an update. Now when I'm playing, it runs normally but after a while, it suddenly enables "lag mode" and it starts lagging only while I move my cursor (everything runs fine while not moving my cursor). This keeps happening until I restart the game. Also, I don't know if this is a bug, but the game doesn't recognize mouse button releases sometimes (I release my mouse button but the game thinks I'm still holding it down). These problems didn't occur when I used the normal launcher.

Platform

Linux (native)

Wine/Proton runner version

XIVLauncher Standart

Relevant log output

No response

LordBrainless avatar Oct 20 '22 21:10 LordBrainless

Possible duplicate of #956 & https://github.com/goatcorp/Dalamud/issues/956

Blooym avatar Oct 20 '22 21:10 Blooym

Hi, I also have the same issue with XIVLauncher causing the game to lag after around an hour. As LordBrainless mentioned, it is only when moving the camera with the mouse. All other aspects of the game run perfectly fine. It fixes itself when restarting the game, however this just "resets" the timer so to speak.

I am also using the flatpak version of XIVLauncher. Currently using the latest version available. However, I also had this issue a month or two ago on an older version, which I was never able to fix, the issues with the official launcher I was having just ended up stopping with newer versions of Proton GE.

I'm personally using Proton GE 38 for the game, however changing this doesn't seem to impact the issue at all.

One last thing I'd like to add is that previously this issue occurred for me regardless of whether Dalamud was enabled or not.

loleik avatar Nov 04 '22 18:11 loleik

Tried the flatpak one out, and even building it for RPM i noticed i only had the weird performance problems when i had steam overlay on, moment i turn it off i had proper performance.

Something with the launcher doesn't like the steam overlay in my case, but if others could try and see if they have similar issues that would be great.

Circuitkun avatar Nov 19 '22 15:11 Circuitkun

Several people have reported in the #linux-and-deck channel that launching through steam would cause the issue after an hour or so, but launching outside of steam was safe. That would seem to line up with the overlay causing problems.

rankynbass avatar Nov 19 '22 19:11 rankynbass

It's not just with the mouse. If you move the camera with the keyboard or with legacy type movement (automatically rotates smoothly around your character) I also see the choppiness. There may be less of it, not sure.

Also, with the Steam overlay completely disabled in Steam settings it still occurs, so I don't think it's related to the Steam overlay.

yaomtc avatar Dec 28 '22 03:12 yaomtc

I have just reproduced my issue with another game, Half-Life 2: Episode Two. Specifically with the beta, and -vulkan in the launch options (to fix crashes I was having previously with HL2), I didn't experience this while I was using the standard togl translation. Though it might be a coincidence and -vulkan / DXVK may or may not have anything to do with it? Either way this is the exact same issue I was having, I'll try to get a screen capture of it occurring in FFXIV too.

Screen capture: https://youtu.be/_x1oeoW9AVA

yaomtc avatar Jan 01 '23 18:01 yaomtc

FFXIV screen capture: https://youtu.be/XS4pSqDYM5M

EDIT: disabling the overlay still allows notifications for messages/achievements. Does having Steam running keep some layer active above the game, or does it use some other mechanism?

yaomtc avatar Jan 01 '23 21:01 yaomtc

If you're willing to do some testing, you could try this build (requires manual install. Read the instructions): https://github.com/rankynbass/XIVLauncher.Core/releases/tag/rb-1.0.2-9

Try it with no changes to settings, and see if it's still a problem. If it is, go into settings and check the "Ignore Steam" and try again. There's also options to try different versions of DXVK, so you might try version 1.10.3 or 2.0 and see if the issue persists. Unfortunately, I've only encountered the problem twice, after 3+ hours of active playtime, so I can't really test if this fixes anything.

rankynbass avatar Jan 01 '23 22:01 rankynbass

Thanks, I'll test this. By the way, those instructions should say flatpak install --user xivlauncher-rb-1.0.2-9.flatpak, it currently says 1.0.2-8

EDIT: also, it's not enough to swap out dev.goats.xivlauncher for dev.rankynbass.xivlauncher in Steam's launch options. I also had to swap out branch=stable for branch=master.

EDIT2: also I had to use flatseal to give it permission to access the drive FFXIV is installed on

yaomtc avatar Jan 01 '23 23:01 yaomtc

Without changing any settings, the problem still cropped up. However, after playing for several hours with "Ignore Steam" checked, it hasn't happened. Normally it would have occurred some time ago. So Steam is the issue, it seems.

yaomtc avatar Jan 02 '23 07:01 yaomtc

It seems this problem may be solved by this pull request on XIVLauncher.Core: PR 19

rankynbass avatar Jan 05 '23 14:01 rankynbass

Ah, it cropped up again today with @rankynbass' patched xivlauncher. I'll continue to test, switching back and forth between the launchers for a while and see if it occurs more frequently one way or another.

yaomtc avatar Jan 06 '23 06:01 yaomtc

Follow-up: none of those versions of DXVK make a difference for me. Have now reproduced the issue with 2.0 as well.

yaomtc avatar Jan 09 '23 06:01 yaomtc

@yaomtc did you find a way to resolve the issue? I am also experiencing this.

kentywang avatar Feb 25 '23 06:02 kentywang

I just stopped using XIVLauncher since then. I still suspect it has something to do with Steam but since I own it on Steam, I'm not sure that I can completely avoid the problem otherwise

yaomtc avatar Feb 25 '23 07:02 yaomtc

I haven't got much of a chance as of yet to play around -but if disabling the Steam Overlay was fruitless my first thought goes to Dalamud -may be worthwhile turning off it's injection, and seeing the results. I'm also curious if this would appear in DX9 mode.. but anyway, seems you're just not using it for now, which is sensible.

MuteObserver avatar Feb 25 '23 09:02 MuteObserver

I first disabled Dalamud in the XIVLauncher's settings but still encountered the stutter after an hour or so of playing. Then I tried checking the "Ignore Steam" option, but that made it so XIVLauncher started prompting me again to install the FFXIV trial version on Steam, preventing me from launching FFXIV.

I am going to try installing XIVLauncher via Lutris now, as according to this ProtonDB comment it helped someone bypass the stutter.

My system is a Steam Deck, FWIW.

kentywang avatar Feb 25 '23 14:02 kentywang

So after installing XIVLauncher vla Lutris, I still encountered the stutter when playing FFXIV added as a Steam game (and in gaming mode). Then I tried adding Lutris itself as a Steam game but still encountered stutter once I launched FFXIV from Lutris there (again, in gaming mode).

I did not encounter the stutter when simply launching XIVLauncher from Lutris in desktop mode.

kentywang avatar Feb 25 '23 21:02 kentywang

Posted this on #956 so I'll re-post here as well for visibility.

I was having this same issue and it seems to have been resolved. I'm not sure what fixed it exactly but here is what I have going on.

Edited dxvk.conf in ~/.xlcore/ffxiv/game with the following: dxgi.maxFrameLatency = 1 dxgi.syncInterval = 0 dxgi.maxFrameRate = 60

I am also launching xivlauncher from Steam with gamescope. My launch options are: XL_SECRET_PROVIDER=FILE gamescope -w 3840 -h 2160 -W 2560 -H 1440 -r 120 %command% run --parent-expose-pids --parent-share-pids --parent-pid=1 --branch=stable --arch=x86_64 --command=xivlauncher dev.goats.xivlauncher

Replace the -w and -h numbers with what you want the game to render at. -W and -H are the parameters for the gamescope windows size. You can full screen with meta + F. -r sets the refresh rate.

I also had to switch from hardware cursor to software cursor in system configuration to prevent gamescope from randomly changing the camera when you left or right click.

Famf avatar Feb 26 '23 10:02 Famf

I'm sorry to bring this one up again but I am having a similar issue and I was hoping to fix it. I tried using the launch options with gamescope mentioned in the last post but the launcher fails to start when I use it.

I'm not on steamdeck, could that be the issue? I am still on linux though.

moeraccoon avatar Mar 23 '23 16:03 moeraccoon

Can report I am having the same issue as well running it under fedora

zee5679 avatar Apr 02 '23 06:04 zee5679

There is a new wine-xiv release which should help with an issue, which sounds extremely close to this one...

To test it just override the wine distribution shipped with xlcore with the new release (while keeping the old wine-xiv-staging-fsync-git-7.10.r3.g560db77dfolder name)

marzent avatar Apr 08 '23 21:04 marzent

There is a new wine-xiv release which should help with an issue, which sounds extremely close to this one...

To test it just override the wine distribution shipped with xlcore with the new release (while keeping the old wine-xiv-staging-fsync-git-7.10.r3.g560db77dfolder name)

This actually fixed my issue. Manage to play all day and no problems. Thanks for the tip

zee5679 avatar Apr 10 '23 02:04 zee5679

There is a new wine-xiv release which should help with an issue, which sounds extremely close to this one...

To test it just override the wine distribution shipped with xlcore with the new release (while keeping the old wine-xiv-staging-fsync-git-7.10.r3.g560db77dfolder name)

Can you please explain like I'm five what I have to do?

moeraccoon avatar Apr 15 '23 07:04 moeraccoon

Download the ubuntu version. Unzip it somewhere. You'll end up with a folder named wine-xiv-staging-fsync-git-8.5.r4.g4211bac7.

Method 1: Go into the folder, and select all, and copy. Then go to ~/.xlcore/compatibilitytool/beta/wine-xiv-staging-fsync-git-7.10.r3.g560db77d, and paste the folders in there, overwriting everything. If you can't see the .xlcore folder, enable "Show hidden files". Start XIVLauncher, and launch the game.

Method 2: Rename the folder to something easy to type, like wine-xiv. Then open XIVLauncher, go to settings, wine tab, and change Installation Type to "Custom". Type the full path to your custom wine folder and add /bin at the end, e.g. /home//Downloads/wine-xiv/bin`. Click the check mark, and then launch the game.

rankynbass avatar Apr 15 '23 14:04 rankynbass

Sadly still no luck. I wonder if my specific GPU has something to do with it.

moeraccoon avatar Apr 17 '23 18:04 moeraccoon

Personally with wine-xiv-staging I no longer have lag/choppiness with camera movement in general. If the camera is moving only as a result of keyboard input or the "Legacy Type" movement settings, it's totally fine, unlike my previous experience.

However, I have noticed choppiness does still come back when it comes to the mouse controlling the camera. Here's a screen capture.

https://www.youtube.com/watch?v=IGEejrHJ16I

EDIT: It's a bit hard to tell in the capture but you can see one type of camera movement just doesn't move for some frames (use J and L to move frame-by-frame on Youtube) while on the legacy or keyboard-based camera movements it moves on every frame of the turn.

I primarily use Legacy Type, so this isn't a major issue for me anymore. Big improvement.

EDIT2: I've confirmed that a gamepad is unaffected. It's just the mouse controlling the camera, which only starts after some time in the game.

EDIT3: also my mouse sometimes thinks I'm holding down LMB when I've just clicked it, I have to click again to get it un-stuck. And the choppiness also occurs when rotating the character model with the mouse in the Fitting Room window

yaomtc avatar Apr 17 '23 19:04 yaomtc

I've also now experienced camera choppiness with keyboard and legacy movement as well as just camera movement in dungeon cutscenes. So wine-xiv doesn't solve any issues for me unfortunately.

yaomtc avatar Apr 21 '23 20:04 yaomtc

I'm far from being a programmer so please keep that in mind while I ask my very ignorant question, but would it be impossible to make the default wine version a more recent one? Experimental maybe, or the latest eggroll? I'm playing flawlessly with those without the launcher. Also, again ignorant question, could it be that using it as a flatpak could be the issue? I install my steam from the official repo of my distro, maybe that's where the problem is?

moeraccoon avatar Apr 27 '23 05:04 moeraccoon

There is a release you can download, posted above by marzent. Here's the link again: https://github.com/goatcorp/wine-xiv-git/releases/tag/8.5.r4.g4211bac7

I'd guess it will be made the default with the next release, but until then you can use it as a custom wine.

As for the stuttering issue, it has been reported in non flatpak versions as well, though less frequently. It seems to be caused by launching through steam. Most likely the gamoverlayrenderer.so library.

rankynbass avatar Apr 27 '23 05:04 rankynbass