Comments (10)
Seems someone already suggested it a year ago here with the same issue, that the stream lags on no motion with no answer:
Is there no option for Sunshine to force constant FPS?
from moonlight-qt.
"Hold on a second... Does that huge decoding latency (50-70ms) really affects the input or audio in the game? For example, when you start scrolling or zooming in/out on the map do you experience some sort of severe glitching/shuttering?"
Yes?? of course. the entire stream laggs when this happens. or mouse cursor.
from moonlight-qt.
To me this looks like a bug on the Intel 12th gen hardware decoder when the image doesn't change a bit from frame to frame. Can you open Windows performance stats and take a look at both CPU % utilization and GPU decoder graph when this happens?
from moonlight-qt.
@mvillarg how? you mean perfmon? I dont see anything in there to frack gpu usage or even gpu video decode usage.
from moonlight-qt.
I was able to reproduce the issue with running HwInfo, being on desktop, and open a https://www.testufo.com/ to trigger a constant 120fps animation on screen and then switch between two tabs in Firefox between ufotest and no motion.
The moment I change to ufotest and have constant 120fps animation it seems to work fine, the moment I change to other tab and have no motion on screen, the problem starts to happen, but JUST if I also slowly move the mouse cursor around very slowly. When I dont move the mouse cursor around it doesnt seem to happen.
Pxl.20240531.101014545.mp4
Pxl.20240531.101014545b.mp4
This doesnt happen with h264 and h265, just AV1. Not sure if the issue is on the client side with Moonlight or on the server with Sunshine.
from moonlight-qt.
I mean you can open Windows's Task manager which has well-known performance stats for CPU, RAM, GPU and Network. When you detect the issue you can alt+tab and see what's happening there. The GPU stats include 3D workload performance, VRAM usage and both enconding & decoding performance charts.
from moonlight-qt.
@mvillarg please see what I posted on 2nd post. Issue also seems to happen with h265 but just very rarely and just for 1 second or so randomly and then goes back, also just when moving mouse around. What is weird though is, even with high mouse movement over entire screen, the issue wont dissolve with AV1 and is stuck at high latency.
Is there a way on host / Sunshine to force a constant 120FPS stream even with no motion? It seems the host is throttling FPS down to even 11fps with no motion, maybe that is the issue and the decoder gets bugged with that. Though it doesnt seem to bug out that much on h265 just av1.
from moonlight-qt.
Hi @makedir ,
Ok, this is simpler than it looks. What's happening here is not actually related to AV1 not being able to encode at a constant bitrate, but simply that the game is not sending draw commands to the GPU, hence Sunshine is not encoding/sending anything to Moonlight. This even occurs in Windows itself, where if you don't move the mouse the FPS counter almost drops to 0.
from moonlight-qt.
@mvillarg and you want now what say with that?
- why doesnt it happen with h264 and h265
- why is this also just happening if moving mouse cursor slowly like seen in the examples in combination with no other screen motion. what you said there is wrong. look at the examples again. it does not happen if not moving the mouse it just happens if you move mouse at the same time of no other draw. also moving mouse quickly doesnt resolve it, where it should with your theory.
- why is there no option in sunshine forcing a constant fps / constant bitrate
- what is the solution / workaround for this
- so you are saying moonlight and sunshine are useless? because it is, if they behave like this with no constant fps force even with no draw on screen.
from moonlight-qt.
Hold on a second... Does that huge decoding latency (50-70ms) really affects the input or audio in the game? For example, when you start scrolling or zooming in/out on the map do you experience some sort of severe glitching/shuttering?
If you don't experience such a high input lag or audio shuttering in that specific situation where the game is not rendering any new frame I wouldn't worry too much. The high decoding time might be tightly related to both hardware or drivers issues on the N100, or just the way delta time is measured in thouse super low framerate conditions between Sunshine and Moonlight.
from moonlight-qt.
Related Issues (20)
- Weird not pixel perfect decoding with Moonlight Windows HOT 6
- Update Windows build instruction, Wix 4.0.4 how to? Undefined symbol D3D11_DECODER_PROFILE_AV1_VLD_PROFILE0. HOT 5
- Cant close connection sometimes, error 503 HOT 2
- Audio disappears HOT 1
- New app icon for Android TV HOT 2
- Moonlight closing a few second after launching HOT 1
- Slow Connection As Soon As I Open a Game on Lenovo Legion HOT 1
- HDR in games without required Windows setting washed out (unlike Cyberpunk i.e.) HOT 1
- Connect/Disconnect logic not properly working always
- wanted: command line parameter for hdr mode "--hdr" and "--no-hdr"
- Hardware decode blackscreen HOT 1
- Display Mode "Windowed" is not effective as the selected resolution HOT 1
- wanted: command line parameter for --video-codec AV1 HOT 1
- RTSP handshake failed Error 10060 randomly appears
- how to change or add the translation text to formal language HOT 2
- Starting rtsp handshake failed : errr 10060 HOT 1
- compiled Moonlight.exe not running on Windows 7 (application error 0xc0000005) HOT 2
- Enable 'stretch video to full-screen' feature/setting in Moonlight settings for 3D Full-SBS for AR glasses such as XReal Air HOT 2
- Automatically disabling Game Mode on macOS 14+ HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moonlight-qt.