Build: Add Linux default graphics API (Vulkan)#3071
Build: Add Linux default graphics API (Vulkan)#3071roku674 wants to merge 3 commits intostride3d:masterfrom
Conversation
To respond to this just for documentation. This is not for/from a company. This is solely me as an individual Alexander Fields |
|
@dotnet-policy-service agree |
|
Thanks for the PR! Is Stride's implementation of Vulkan stable enough on Linux for it to replace OpenGL as the default API? Pinging @Jklawreszuk because they work on the Linux platform quite a bit. |
Now that you mention it i just noticed a crash in my container I need to investigate if this is because of Vulkan
|
Closing this becuase you're right OpenGL seems much more stable than Vulkan when i tested two identical contianers of my game one with Vulkan one with Open GL via an env var |
|
Please note there is currently an ongoing PR to remove OpenGL entirely, and set Vulkan as default API for Linux, MacOS, iOS, and Android. |
Im not sure a complete removal would be prudent I'm running the game on a CPU only system and its stable on OpenGL but not Vulkan |
D3D and Vulkan support are being re-written by xen2 so it shouldn't be an issue once the PR is integrated. |
Summary
-p:StrideGraphicsApi=VulkanThe Change
Added to
sources/targets/Stride.propsalongside the existing platform defaults.Proof of Concept
This fix has been validated in a production Docker environment running a Stride-based game server. Here is the complete working Dockerfile:
Key Insights from Production Use
-p:StrideGraphicsApi=Vulkan), not a runtime environment variableNativeLibraryHelperexpects unversioned symlinks (libfreetype.so), which requires-devpackages on LinuxTest Plan
-p:StrideGraphicsApi