-
-
Notifications
You must be signed in to change notification settings - Fork 987
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
fix(linux): add frame processing latency and logging improvements #2502
Conversation
I think I'll have to revert the loglevel change for the
The Intel strings are then repeated quite a lot (due to all the encoder checks that are done), but there's not a single mention of AMD when in fact the rendering and capturing is done on the AMD dGPU. The output above is for forced |
Ah sorry, it seems that I messed up the formatting. At least clang-format finds things to change. I ran it from the CLI and since it ran cleanly I thought everything was fine, only to notice afterwards that the -i flag stands for edit in-place... Anyway I will work my dev setup to avoid further formatting issues and force push fixed commits. There won't be any actual code changes. |
Make sure you are using spaces, not tabs: https://github.com/LizardByte/Sunshine/actions/runs/9043429894/job/24853606135?pr=2502#step:5:14 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## nightly #2502 +/- ##
==========================================
- Coverage 7.00% 6.99% -0.01%
==========================================
Files 87 87
Lines 17670 17679 +9
Branches 8391 8399 +8
==========================================
Hits 1237 1237
- Misses 13709 13713 +4
- Partials 2724 2729 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Yes, I've now made my dev container available over the network so that I can properly edit remotely with vscode, including the clang-format extension... |
347fdd3
to
ff04a93
Compare
On multi-GPU systems it's useful to have essential GPU info in Sunshine's log at the default 'info' loglevel. In particular, if x11grab was used in combination with VA-API encoding, there was no indication at all about the currently used GPU.
IDR frames seem to be related to the occasional DATA_SHARDS_MAX warnings observed by some AMD users.
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().
The setcap won't work for AppImage and Flatpak packages. Refer the user to the official documentation for further instructions.
Previously no information at all was logged about the used codec.
ff04a93
to
3200732
Compare
Description
This PR collects a few minor improvements to the Linux logging code. It allows for easier troubleshooting. Here are the commit messages (with minor edits):
1.
Example:
Screenshot
Issues Fixed or Closed
improves upon #2273
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.