shiiion / dolphin

Dolphin fork intended to give Metroid Prime Trilogy mouselook controls
Other
466 stars 43 forks source link

Severe lag after ~30 minutes on steam deck #144

Closed Stewmath closed 2 months ago

Stewmath commented 1 year ago

When playing with mouse controls on a steam deck, the game runs well, until it starts lagging very badly after playing for a bit over 30 minutes. It only lags when the mouse is being moved, down to as low as 30fps. (The trackpad works better when simulating a mouse rather than a joystick, which is why I'm not using normal controller settings.)

Steps to reproduce:

Additional details:

Stewmath commented 1 year ago

After more testing, the bug didn't occur with joystick-based controls, so it definitely seems to be caused by mouse movement.

vyuuui commented 9 months ago

Bit late on the response here, but is it possible to get the log output from primehack? Set the loglevel to warn and send the output here around where it starts lagging.

Stewmath commented 2 months ago

Sorry I never got around to doing that. But, I did find a fix of sorts. It's not an issue with primehack.

I had sort of given up on this, until I encountered the exact same issue while playing... DX-Ball 2. I don't know why it was only these two games specifically, but I don't play a lot of mouse-heavy games on my steam deck. The only common thread I can think of is that I spent a fair bit of time tinkering with steam input's mouse settings in both games.

So I did some more searching and found this gamescope issue: https://github.com/ValveSoftware/gamescope/issues/697

The workaround proposed there fixed the issue - I added this to my launch arguments:

LD_PRELOAD=""

I've played for multiple hours in game mode using this workaround, and the issue didn't re-occur. I think the fix has something to do with disabling the steam overlay, but I'm not totally sure. I know that simply disabling the overlay in the settings didn't fix the issue.

All's good now though. On track to finish Prime 1 this time :+1: