-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Frame rate drops when idle #3419
Comments
This looks like you're using a self compiled version. Please update your issue with the commit you're using. |
I'd suggest trying the latest pre-release. There have been many commits since the one you linked. |
There's also a config option to |
Even when I try to set minimum_frame_time to 1MS, it won't go up to 64fps |
@ReenigneArcher , Excuse me, can you tell me, when will Sunshine be released? A lot of time has passed since the last release. Can you tell me when a stable release is planned? |
I'm having the same problem. I'm using the latest pre-release version Having both a PC monitor and a smartphone with 120 FPS, games locked with 60 FPS are unplayable due to constant stuttering every ~1.5 seconds The workaround I found for my problem, is to keep any small video/animation rendered in 120+ FPS running in the corner of the screen to force the stream back to 120 FPS |
minimum_frame_time is only effective if the frame drops after the screen is still. |
i confirm min_fps_factor is not working. I've set to 3, and it drops from 120fps to 20fps when idle. |
Normally the stream reaches constant 120 frames if something is being rendered with 120 FPS or more. |
If not set, it will drop to 9fps |
Yes, me too. The mouse movement is slow when the connection is just established. |
In my case, no matter the value I use (1, 2, or 3) it drops to 9 FPS when idle (or to 60 when I'm playing a 60-locked game This would not be a problem, but the stream is stuttering every ~1.5, ~2 seconds when this happens. |
That doesn't sound right. Did you restart Sunshine after applying the change (Sunshine does not re-read the config after startup)? What version of Sunshine are you using? In any event, the setting will not really give you a floor of 60fps, more like ~30. If you're getting 9 fps with this setting at 3, you have something else going on. Perhaps network issues, or something else completely. This issue is also about static content, such as sitting at the desktop screen or a menu with no animations. If you're in the middle of a game and having this, it's an entirely different thing. Can't really tell more without logs. If you need more support please reach out on Discord or use our discussions feature https://github.com/orgs/LizardByte/discussions |
is there any possibility to avoid the fps/bitrate to go low when idleing ? |
I’m using the latest pre-release version: v2024.1217.154237. Yes, I’ve restarted Sunshine, my computer, and Moonlight as well.
I get 9 FPS when idle (e.g., on the desktop or with static images). However, when playing, the stream matches the game’s FPS, up to a maximum of 120 FPS. I believe I’ve discovered new information about my stuttering issue. I ran some tests with Path of Exile 2. While streaming to my phone, I can achieve ~115–120 FPS without any stuttering or lag. The streaming is completely smooth. However, when I lock the FPS to 60, stuttering begins. This also occurs when streaming Switch games, which are capped at 60 FPS. I attempted to record my phone screen to demonstrate the problem, but the stuttering disappeared while recording. As soon as I stopped recording, the issue returned. To investigate further, I used my wife’s phone to record both my PC and phone screens. That’s when I noticed my phone screen was flickering significantly, while my PC screen remained stable. It seems my phone uses a dynamic refresh rate, and when Moonlight streams at 60 FPS, my phone reduces its refresh rate from 120 Hz to 60 Hz. This adjustment appears to cause stuttering every 1.5 seconds. I also tried locking Moonlight to 60 FPS, but it didn’t resolve the issue. Additionally, adjusting the min_fps_factor setting had no effect on the stream. |
Is the |
There's no |
I confused the name earlier it’s actually min_fps_factor. Is there any chance we have a "force maximum frame rate" option? |
do have the same issue, |
How can dynamic frame rate be completely turned off? This option 'Do not change refresh rate' is invalid. If it is difficult to turn off, can setting the maximum value of the Minimum FPS Factor option to 10 solve the problem? I just hope that when the game is played on a Hyper-v virtual machine, it can reach 60FPS. The Sunshine version used to have 60FPS, but the current version doesn't work because of the dynamic frame rate |
The fps floor was setup by these PRs:
Feel free to review and try to come up with a better solution. |
@ReenigneArcher How do I need to set it up to reach 60 frames per second during gameplay |
@ReenigneArcher Or could you tell me which recent version of Sunshine supports fixed frame rates, while earlier versions do not support controller vibration. |
Do not use openstream or old versions of Sunshine. There are too many security issues to make that risk worthwhile. Play your game and stop fps watching. Sunshine won't reach 60fps when nothing is changing on your screen. |
@ReenigneArcher When I play at 400FPS, the streaming frame rate is only around 33FPS, and when I stream with ROG ALLY, the actual frame rate displayed by ROG ALLY is indeed only around 33 FPS |
I am not sure I would consider this an issue as it is working as designed, the min_fps_factor is more of a workaround solution to stop scenarios where some devices with dynamic refresh rate, would flicker while streaming because the default fps limit was around 10fps. If you want a constant frame rate, use the WGC option but keep in mind it will not really make much of a difference in terms of smoothness of the stream. If the game or content you are viewing does not match the streaming rate, it will have stuttering regardless. |
@Nonary @ReenigneArcher |
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the latest beta/pre-release?
None
Describe the Bug
I'm using sunshine and moonlight to stream games on a Windows 10 22H2 system. I noticed that when the system is idle on the desktop without any operation, the frame rate drops to less than 10 frames per second.
However, on Ubuntu under the same circumstances, it can even run at a full 240Hz frame rate.
I wonder if this is caused by the characteristics of the Windows DX API. Will upgrading to win11 help, Or which version of sunshine should I use?
Operating System Version
Windows10 22H2
Architecture
amd64/x86_64
Sunshine commit or version
024bd8f
GPU Model
RTX 4090
Relevant log output
The text was updated successfully, but these errors were encountered: