Skip to content
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

Vulkan: Make upscaler dynamic (FSR on/off) #11115

Merged
merged 3 commits into from Nov 6, 2021
Merged

Conversation

Megamouse
Copy link
Contributor

@Megamouse Megamouse commented Nov 4, 2021

  • Resets upscaler on settings change. Although FSR is currently marked as a dynamic config option, it couldn't change during gameplay.
  • Fixes a theoretical bug that led to an unwanted respective missing call to scale_output when you change the upscaler in the settings just at the right moment
  • Improves the FSR sharpening strength tooltip area by introducing a parent widget as tooltip target

The config option was marked as dynamic, but was never actually changed ingame
@Asinin3
Copy link
Contributor

Asinin3 commented Nov 5, 2021

FSR Works dynamically currently, but you have to resize the game window or go in and out of fullscreen. Nice to see thats no longer required though!

@@ -384,6 +384,7 @@ class VKGSRender : public GSRender, public ::rsx::reports::ZCULL_control

std::unique_ptr<vk::text_writer> m_text_writer;
std::unique_ptr<vk::upscaler> m_upscaler;
bool m_use_fsr_upscaling{false};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to permanently store this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we need this to see the change in settings.
Is it possible to have a callback system for config settings? It would make things much cleaner for dynamic RSX options.
Like, if a checkbox value is changed, call some function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a function that is called when we save the settings dialog.
Idk if it's better to add that in

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave it as-is for now, that needs to be handled as a bigger job involving handling renderer restart gracefully.

@Megamouse Megamouse merged commit 88bb26a into RPCS3:master Nov 6, 2021
@Megamouse Megamouse deleted the fsr branch November 6, 2021 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants