Skip to content

MetalSharp Wine 9.0

Latest

Choose a tag to compare

@aaf2tbz aaf2tbz released this 23 Nov 05:45
· 11 commits to main since this release
61b045c

MetalSharp Wine 9.0 turns VKD3D-Proton and DXVK into one Vulkan lane from Direct3D 12 down to 3 on both builds. It makes FEX faster and runs Wine's hot paths on NEON SIMD Intrinsics. It also brings compatibility for Battle.net's windows, and programs whose DLLs come from their own file system. Overall, this brings the runtime to a new level of performance and usability.

Graphics

  • MetalVulkan 7.0 (metalsharp/MetalVulkan, formerly VKD3D-Proton-MacOS):
    • VKD3D-Proton, DXVK and MoltenVK in one repository, as one lane for Direct3D 12 down to 3, 64- and 32-bit, with d7vk's ddraw for Direct3D 7 to 3.
    • On the arm64 build, its hot CPU paths run on NEON. For example, CopyDescriptors is up to 4.6× faster.
  • 64-bit programs load d3d8.dll on every lane.
  • Mullion 2a311095:
    • Direct3D 11 tessellation on Metal's tessellator, about twice as fast at high factors.
    • Shader Model 6.8.
    • Geometry shaders run several invocations in each mesh threadgroup.
    • DLSS hands MetalFX more of what games pass it: the reactive mask, jittered and display-resolution motion vectors.
    • MetalFX upscaling no longer holds a 144 Hz display to 48 fps.
    • Shader caches are rebuilt once.
  • OpenGL:
    • WineMetalGL 4.1.0: Call of Duty 4's videos play, plus City of Heroes and M6 fixes. On the arm64 build it is now the builtin opengl32.
    • Zink on MoltenVK gets a depth buffer and OpenGL 3.3.
  • MetalVR 0.2.5: MetalFX upscaling per eye, the headset's own fields of view and IPD, and Touch controllers.

FEX (arm64 build)

  • Games with a lot of hot code start in seconds with multiblock on. The JIT code buffer grows to 1 GiB, where 128 MiB was cleared hundreds of times: Overwatch's window appears after 26 s, not 110 s. FEX_MAXCODEBUFFERSIZE sets the limit in MiB.
  • TSO emulation is off by default, which runs games much faster; FEX_TSOENABLED=1 turns it back on for a game. Where TSO is on, volatile metadata now covers every block in its ranges: 35 ms for an update loop that took 64.
  • MAP_JIT code buffers: compiled code is written through macOS's JIT write window instead of a fault and an mprotect() call on every write.
  • RDTSCP and RDPID run, where they raised an exception; Blender 5.3 stopped on them.

NEON in Wine (arm64 build)

x86_64 programs reach Wine's C code as ARM64EC, which had no SIMD. All of these give the same results as the C code:

  • memcpy, memmove, memcmp, strlen, strcmp and friends in ntdll and the CRTs, which ran a byte at a time.
  • UTF-8 conversion, 16 ASCII characters at a time.
  • GDI's AlphaBlend, HALFTONE stretching and glyph drawing.
  • Layered window shapes: 0.50 → 0.17 ms per 1080p flush.
  • WIC's premultiply and BGR swaps.
  • d3dx9 to d3dx11's format conversion and filtering.
  • dsound's upsampler.

Games and programs

  • Battle.net's login and main windows draw again (#50).
  • DLLs that a program's own file system serves load, both builds: EXOCAD DentalCAD and DentalDB (#66).
  • Ubisoft Connect's WebGL keeps the GPU MetalSharp starts it with (x86_64 build).

Building

  • scripts/build-all.sh builds the whole app from a fresh clone (docs/BUILDING.md).
  • src/metalvulkan replaces src/vkd3d-proton and src/dxvk-macos.

docs/CHANGES.md has the details. The apps are built from main at v9.0, notarized, and signed with Developer ID. The x86_64 app carries MetalVulkan 7.0's release packages as well as the updated graphics lanes.