forked from Aleksoid1978/VideoRenderer
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CD3D11VP::SetSuperRes
: allows enabling NVIDIA/Intel superres
- Loading branch information
Showing
3 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a684e0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job.
https://disk.yandex.ru/d/WoH6AFKzmEejEA
My quick implementation of the option.
Only for Nvidia. To apply the option, you must restart playback.
a684e0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@v0lt
I found in d56bcfa that after enabling SuperRes during init I could then disable/enable it any time after and it seems to apply change fine.
There I have it checking in
UpdateRenderRect
and disabling if too small, or enabling again when it's upscaling, seemed to save a few watts being wasted since VSR doesn't do anything for downscaling.If I remove the super-res enable during
InitializeD3D11VP
then the enable/disable calls during resize didn't have any effect though, I guess after some point in D3D11 init SuperRes maybe checks if it was turned on before, if it wasn't then it prevents working (maybe unloads itself or something).You might want to add check for P010/P016 and prevent it for that too, there's a bad memory leak in VSR for those right now: #1
It looks like only CF_NV12 is working with it properly really, at least for the NV scaler anyway, not sure what Intel works with.
a684e0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Answered there.