moonlight-stream / moonlight-qt

GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
GNU General Public License v3.0
9.39k stars 552 forks source link

High polling rate mice can kill performance #1224

Open MaeIsBad opened 4 months ago

MaeIsBad commented 4 months ago

Shaking my high refresh rate(1000hz, SteelSeries Rival 100) mouse results in a sudden framerate drop.

This issue disappears as soon as I switch to using a different mouse, or change the polling rate.

Steps to reproduce The reproducibility of this might depend on some network conditions, however this is 100% consistent on my network.

Client PC details (please complete the following information)

Server PC details (please complete the following information)

I'm not currently able to provide logs, hopefully this is enough information

cgutman commented 3 months ago

I'm not seeing this here on Fedora 39 using the GNOME 45.5 Wayland session with a Razer Deathadder V3 in 8000 Hz mode.

Can you check the performance overlay (Ctrl+Alt+Shift+S) and note which FPS and frame drop numbers look relevant during the performance drops? Are you using software or hardware decoding?

I assume you installed through the NixOS package repository. Can you try with the Flatpak version and confirm you see the same symptoms?

MaeIsBad commented 3 months ago

Not gonna be able to test this until next week, I'll also upload the logs then

MaeIsBad commented 3 months ago

moonlight_log.txt

This video shows the issue happening. I start off with a polling rate of 125Hz, shake my mouse around the risk of rain 2 settings menu with no noticeable performance impact. I switch over to my second desktop and run rivalcfg -p 1000 to bump the polling rate to 1000Hz, after which shaking the mouse causes the framerate to drop below 10. After I stop moving the mouse it takes a few seconds for the framerate to recover, after which I switch back to the lower polling rate with rivalcfg -p 125, and shake my mouse around again.

recording.webm

MaeIsBad commented 3 months ago

I've tested and the same issue occurs with the latest flatpak(5.0.1), and after updating sunshine to 0.23

LoPablo commented 2 months ago

Can confirm the same happens on macOS with 500hz polling rate.

FallingSnow commented 2 months ago

Is this game in borderless window mode? Can you achieve the same thing on the windows desktop?