forked from ValveSoftware/steamos-compositor
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layer: Force up swapchain minImageCount
The Thing: Remastered (2958970) always creates a swapchain with 2 images in vkCreateSwapchain's minImageCount and does not respect the surface capabilities minImageCount. This causes the game to run at half framerate when SteamOS is not compositing, because we only return the image back to the game when the new one is presented on screen successfully which causes a huge stall in GPU work for the game. Forcing the image count to respect the surface capabilities at creation time fixes this problem and allows the game to run at a solid 90fps.
- Loading branch information
Showing
1 changed file
with
99 additions
and
68 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