Since version 1.2g, Windows has a second desktop target:
Desktop (Vulkan), in the Target menu beside Desktop (DX12). It's the same Vulkan runtime the Linux edition uses, built for Windows, and there are two good reasons to use it:
- Speed. In our benchmarks it draws sprites and text about 3x faster than the DirectX 12 runtime, and textured depth quads (3D-in-2D) 4–5x faster. It also has no per-frame limit on how much you draw.
- One game, Windows and Linux. A game built on Vulkan behaves the same on both, shaders and all — they're the same GLSL files.
Switching is one Import line (
Import "BBRuntimeVulkan.decls"), and conditional compiling (
#If DESKTOP_VK) lets one program build for either. Everything works on it: graphics, shaders, tilemaps, BGI and IGI, canvases, movies, sound, input, files and networking. Players need a graphics driver with Vulkan 1.3, which current NVIDIA, AMD and Intel drivers all have. See "Desktop (Vulkan) Target" in the documentation.