-
Notifications
You must be signed in to change notification settings - Fork 151
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
Mouse movement causes entire stream to stutter #227
Comments
It seems that when the mouse is being moved, the capture FPS is exceeding the proper client constraint. Steps to reproduce:
Result:
So, my guess is that the encoder could be getting overwhelmed by excessive framerate even when Moonlight is set to 60fps, even if the statistics don't show the problem if not using the unsupported rates. |
It seems that the issue I'm experiencing only affects some games, and in certain cases, it depends on what is being rendered for the issue to trigger. One obvious example is Red Dead Redemption 2 (Vulkan). The starting menu and actual ingame works fine, with the capture/render FPS always constrained to 60fps according to Moonlight's statistics. If you enter the pause menu or open the map, however, the Moonlight fps will only stay at 60fps when the mouse is not moved, but shoots up during movement, which also triggers the stuttering effect while the map scrolls. Note that Steam's FPS counter never goes above 60fps during these stuttering incidents. I haven't yet found an open source game or application to highlight this problem, but I can at least point to the free "Dagon" visual novel on Steam. The loading screen and main menu runs at 60fps, but exceeds that when the mouse is moved, whereas ingame will stay locked to 60fps at all times. Unfortunately this is not a great example to show the stutter effect, as the main menu itself is static. More examples: For the affected games, the vsync constraint is somehow ignored when feeding sunshine frames if the cursor is visible, which causes the stutter effect (even when Moonlight is set to 60fps), but there is no problem when the cursor is hidden/in mouselook mode. |
happening on both AMD & Nvidia GPU (tested by RX550, 1050Ti), when having a remote desktop session instead of gaming. Run Google Earth to travel between locations then move your mouse will easily reproduce this issue. |
Host: Windows 10 x64 21H1, Ryzen 2700, Radeon RX 570, H264 software encoding, built against latest master as of d332f11
Client: Moonlight 3.1.4 on Ubuntu 21.10 x64 & Windows 10 x64
Issue: when moving the mouse on the client during movement on-screen, the entire stream (not just the mouse pointer) will stutter at what seems subjectively half speed - but the Moonlight encoder statistics doesn't show any framerate drop. The effect persists until the mouse cursor stops moving.
Steps to reproduce:
Notes:
Edit: It seems that the same stutter is present if I move the host's mouse while observing the client stream. Also, to be clear: no stutter is visible on the host screen during mouse movement when the host or client mouse is moving.
The text was updated successfully, but these errors were encountered: