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

Add a new config-only option to prevent exclusive full screen mode #9779

Merged
merged 2 commits into from Feb 14, 2021

Conversation

13xforever
Copy link
Contributor

@13xforever 13xforever commented Feb 14, 2021

This is helpful for people streaming RPCS3, or to prevent disabling HDR mode in Windows.

Fixes #7975

New option is under Vulkan section of config.yml, it is disabled by default to maintain current behavior.

Video:
    Vulkan:
        Force Disable Exclusive Fullscreen Mode: false

People with multimonitor setup should test if switching to full screen works on different screens as expected.

@13xforever 13xforever force-pushed the feature/non_exclusive_fullscreen branch 3 times, most recently from 5a267c2 to 44e9688 Compare February 14, 2021 10:43
@13xforever 13xforever force-pushed the feature/non_exclusive_fullscreen branch from 44e9688 to 32d26e3 Compare February 14, 2021 10:53
rpcs3/Emu/RSX/VK/vkutils/device.cpp Outdated Show resolved Hide resolved
rpcs3/Emu/system_config.h Outdated Show resolved Hide resolved
@13xforever 13xforever force-pushed the feature/non_exclusive_fullscreen branch 2 times, most recently from f0a9016 to 543abe7 Compare February 14, 2021 10:58
@Megamouse Megamouse requested a review from kd-11 February 14, 2021 11:30
@13xforever 13xforever force-pushed the feature/non_exclusive_fullscreen branch 2 times, most recently from 62123d0 to 67e4183 Compare February 14, 2021 12:15
this is helpful for people streaming RPCS3, or to prevent disabling HDR mode in Windows
@13xforever 13xforever force-pushed the feature/non_exclusive_fullscreen branch from 67e4183 to 84ed5ae Compare February 14, 2021 12:17
@@ -586,8 +586,49 @@ namespace vk
VkSwapchainKHR old_swapchain = m_vk_swapchain;
vk::physical_device& gpu = const_cast<vk::physical_device&>(dev.gpu());

VkSurfaceCapabilitiesKHR surface_descriptors = {};
CHECK_RESULT(vkGetPhysicalDeviceSurfaceCapabilitiesKHR(gpu, m_surface, &surface_descriptors));
VkSurfaceCapabilities2KHR pSurfaceCapabilities = {};
Copy link
Contributor

Choose a reason for hiding this comment

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

This method is uncomfortably long now, I'll have to refactor it later. Seems fine otherwise.

@Nekotekina Nekotekina merged commit 76518d4 into RPCS3:master Feb 14, 2021
@Augusto7743
Copy link

That feature is for Linux too ?

@13xforever
Copy link
Contributor Author

Please do not necropost. This feature was superseded by more flexible option, and it's a vulkan feature. Whether drivers advertise or support it is another matter. In the future please use discord or support forum to ask questions.

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.

Running a Game in Fullscreen Disables the HDR Setting in Windows 10.
7 participants