-
-
Notifications
You must be signed in to change notification settings - Fork 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
Populate host latency for kms/x11 grab #2273
Populate host latency for kms/x11 grab #2273
Conversation
I am able to test the path through the display_vram_t class but not display_ram_t. I'm not sure how to force it to use display_ram_t |
Software encoding should hit display_ram_t |
I had to make a correction but this is also tested and working now. |
I was thinking of adding this for X11 as well to compare performance. But then I thought that this would not work if I set the timestamp just after the snapshot because from then on it's just the encoding. Maybe just before the capture operation would make more sense. |
Added x11 |
93eceb3
to
5061db2
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## nightly #2273 +/- ##
==========================================
- Coverage 6.09% 6.09% -0.01%
==========================================
Files 86 86
Lines 18514 18518 +4
Branches 8404 8404
==========================================
Hits 1129 1129
- Misses 15556 16264 +708
+ Partials 1829 1125 -704
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This commit populates the img->frame_timestamp field, so that Moonlight is now capable of showing the "Host processing latency" in its statistics overlay. It's a complement to PR LizardByte#2273 which did miss the codepath for shm_attr_t::snapshot().
This commit populates the img->frame_timestamp field, so that Moonlight is now capable of showing the "Host processing latency" in its statistics overlay. It's a complement to PR LizardByte#2273 which did miss the codepath for shm_attr_t::snapshot().
This commit populates the img->frame_timestamp field, so that Moonlight is now capable of showing the "Host processing latency" in its statistics overlay. It's a complement to PR LizardByte#2273 which did miss the codepath for shm_attr_t::snapshot().
Description
This PR populates the frame_timestamp at the point that the KMS and X11 capture is done. This allows Moonlight to show the host latency in the statistics like it does for Windows.
Screenshot
Issues Fixed or Closed
n/a
Type of Change
.github/...
)Checklist
Branch Updates
LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.