-
-
Notifications
You must be signed in to change notification settings - Fork 994
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
feat(nvprefs): add V-Sync and frame limiter options #3317
base: master
Are you sure you want to change the base?
feat(nvprefs): add V-Sync and frame limiter options #3317
Conversation
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.
Thanks for the PR! this is a preliminary review.
@@ -114,6 +114,26 @@ const config = ref(props.config) | |||
</select> | |||
<div class="form-text">{{ $t('config.nvenc_h264_cavlc_desc') }}</div> | |||
</div> | |||
|
|||
<!-- Force disable V-Sync (NVAPI) --> | |||
<div class="mb-3" v-if="platform === 'windows'"> |
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 one is fine, but I'm not sure why the one above is missing the conditional for the windows platform... or if any of them are even needed as the entire nvenc encoder is Windows only.
} | ||
|
||
// TODO: save current setting and restore it later | ||
setting.u32CurrentValue = 60; // TODO: change this according to host refresh rate |
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.
I suppose you can get this from #2894 after it's merged.
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
I managed to try this and it worked as expected: it changed the settings for vsync and fps limit I'd need a bit more info on those things:
|
Take a look at my PR where the
I would not recommend using refresh rate, but would take it from It might also be a good idea to provide an override value to be used instead of an automatic one for the limiter. |
Description
Title.
A lot of users are already setting frame limiter / disabling V-Sync in Nvidia Control Panel to reduce stutter with Sunshine.
However it would require to switch back and forth between:
This PR aims to make this automatic.
Screenshot
Will provide later
Issues Fixed or Closed
Type of Change
.github/...
)Checklist