-
Notifications
You must be signed in to change notification settings - Fork 121
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
[XB1] Player switches to avc1 codec after suspend/resume #1504
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1504 +/- ##
=======================================
Coverage 58.12% 58.12%
=======================================
Files 1774 1774
Lines 85781 85781
=======================================
+ Hits 49862 49863 +1
+ Misses 35919 35918 -1 ☔ View full report in Codecov by Sentry. |
At the time of suspend Cobalt releases player, all D3D12 objects, including vp9/av1 compiled shaders and extended resources. In time of resume Cobalt tries to resume player. This process looks as
|
a0e7802
to
1075097
Compare
When you say don't clear the cache, are you referring to keeping it in memory or keeping it on disk, like in I would say we should avoid the first case, but the second case is fine, though I'd need to verify which file location we should use as they have different lifetimes. |
I mean removing this code |
I mean don't call |
And keep in mind that this PR depends on #1524. If you make positive decision for current PR, please don't merge it before I do rebase & may be refactoring of it. |
I don't think we should keep memory while in a suspended state, I tried to find documentation from Microsoft to see if there was precedent for that but I couldn't. Is the codec switching very noticeable to users? If not, I think we can leave it as-is. |
By switching to AVC in the worst case users loose 2K resolution and HDR. For high quality videos this may be quite noticeable. |
84332bd
to
cdb9911
Compare
I'm still not fully convinced we should keep shaders in-memory in a suspended state. @jasonzhangxx can you take a look? |
b/173550025 Change-Id: I50b25524928c5565ae2b9b2b8cfbd3d6dabe3184
963322e
to
ebf9b7c
Compare
b/173550025
Change-Id: I72d733e1036c672de491b627c0026ddf88345426