stride
stride copied to clipboard
Fullscreen with Vulkan appears to be Broken
@Eideren: This issue has a bounty
Release Type: Official Release
Version: 4.0.1.1400
Platform(s): Windows
Describe the bug I am not able to go full screen using Vulkan. My project is setup using SDL context, but I tested with the default and found the same results. I am only making calls to Window:
var window = Game.Window;
_windowPosition = window.Position;
window.IsBorderLess = true;
window.Position = Int2.Zero;
window.SetSize(resolution); // Breaks Vulkan
// window.PreferredFullscreenSize = resolution;
// window.IsFullscreen = true; // Breaks Vulkan
With both approaches the game window goes full screen size but the draw call ceases to run. There is no crash or exceptions thrown within my IDE.
To Reproduce Steps to reproduce the behavior:
- Create a new project.
- Add <StrideGraphicsApi>Vulkan</StrideGraphicsApi> to .csproj.
- Attempt any of the methods above.
Expected behavior I expect Vulkan to be able to go full screen.
I will create a repo of this and upload when I sit down to code again.
I was able to reproduce this with a default project, targeting Vulkan and then setting Game.Window.Fullscreen to true. Unfortunately I can't upload the repo as it's larger than 10MB.
I found this issue on Focus engine (Stride Fork):
https://github.com/phr00t/FocusEngine/issues/70#issuecomment-782376470
A workaround is to set the screen resolution and fullscreen flag in a configuration file and use it on launch. Apparently resizing Stride when using Vulkan is very complex.
@stride3d Willing to give this a look if this hasn't been fixed.
Sounds great and would be really appreciated. To work on an issue, create a branch and make a draft PR without code so everyone can see that you are working on it. Then start committing to that branch and convert to regular PR when you are ready for review. Thanks!
Fixed in PR #1709
Hi @tamamutu,
Would you be interested in more paid project work for Stride. We have Open collective projects available but if there are other ideas that you ware willing to contribute with, we are all ears. We can have a chat via Discord or another channel if you are up for it.