forked from ValveSoftware/steamos-compositor
-
Notifications
You must be signed in to change notification settings - Fork 234
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
Shortcut for cycling scalers and filters / Output in MangoApp #895
Open
Root-Core
wants to merge
4
commits into
ValveSoftware:master
Choose a base branch
from
Root-Core:shortcut
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
bc6f8fe
Implemented shortcuts to cycle scalers and filters
Root-Core 172ef5e
MangoApp: Send the current upscaler instead of FSR
Root-Core 9b8f491
MangoApp: Added scaler to updates
Root-Core 9cde9eb
Modified MangoApp protocol to not repurpose / rename fields
Root-Core File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This actually showed whether FSR was doing anything not whether it was selected.
it 1280x800 game on 1280x800 output would show disabled here even if FSR was disabled.
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.
Okay, I understand. With a quick look at the sources it seems to be only activated if upscaling is necessary.
gamescope/src/steamcompmgr.cpp
Lines 2263 to 2265 in 7a1fe2d
Off-topic: While I'm not knowledgeable in this matter, it might also be beneficial to filter / sharpen images that aren't (up-)scaled. #702
To be technology agnostic: The same behavior applies to NIS.
There isn't any feedback currently, as the
g_bFSRActive
flag andGAMESCOPE_FSR_FEEDBACK
atom explicitly reference FSR and only get triggered if FSR is used. I know nothing about Xlib and how this atom is used, but we should consider refactoring these technology specific bits. I can't find any other tool / program online, that references this specific atom though.Nevertheless, if there is a reason to only use the filters on upscaled frames and keep the flag, it might be better to add a
scaler_filter_active
and keepfsrUpscale
deprecated.BTW:
fsrUpscale
still gets populated at the moment, so we are able to check / show this in MangoApp.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.
It would be okay to repurprose this and the atom for a generic 'upscaling active'
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.
Regarding MangoApp, repurposing / renaming is denied (flightlessmango/MangoHud#1042 (comment)), adding fields would be the way to go for the IPC.
I can refactor the internal variables / logic though, so that it is generic.
You should decide if it is okay to rename the atom.