iXit / wine-nine-standalone

Build Gallium Nine support on top of an existing WINE installation
GNU Lesser General Public License v2.1
272 stars 23 forks source link
d3d9 gallium gaming linux mesa nine wine

Gallium Nine Standalone |buildstate|

.. |buildstate| image:: https://github.com/iXit/wine-nine-standalone/actions/workflows/build.yml/badge.svg?branch=master :target: https://github.com/iXit/wine-nine-standalone/actions

.. image:: https://wiki.ixit.cz/_media/gallium-nine.png :target: https://wiki.ixit.cz/d3d9

About

Gallium Nine allows to run any Direct3D 9 application with nearly no CPU overhead, which provides a smoother gaming experience and increased FPS.

Gallium Nine Standalone, as the name implies, is a standalone version of the WINE <https://www.winehq.org/> parts of Gallium Nine <https://github.com/iXit/wine>.

This decouples Gallium Nine from the WINE tree, so that it can be used with any WINE version. There is no need for any WINE patches. A stable, development, or staging WINE release is sufficient.

Gallium Nine Standalone consists of two parts:

Objective

Requirements

Packages

Your distribution may provide a package, avoiding the need to compile the code yourself. The exact usage instructions may vary in this case so check your distribution for the details. The currently known packages are:

We also provide distro independent release binaries, available as GitHub releases <https://github.com/iXit/wine-nine-standalone/releases>. You can either download these yourself (see Usage below), or install them via Winetricks <https://github.com/Winetricks/winetricks>_.

Usage

This part assumes that you downloaded a release binary or compiled using release.sh yourself.

The latter symlinks the extracted binaries to your WINE prefix and enables Gallium Nine Standalone. To target another WINE prefix than the standard ~/.wine, just set WINEPREFIX accordingly before you run nine-install.sh.

Gallium Nine Standalone comes with a GUI.

For the 32bit version run wine ninewinecfg and for 64bit wine64 ninewinecfg.

Compiling

Please see our wiki <https://github.com/iXit/wine-nine-standalone/wiki/Compiling>_, which also includes distro specific help.

Backends

The DRI3 backend is the preferred one and has the lowest CPU and memory overhead.

As fallback for legacy platforms the DRI2 backend can be used, which has more CPU overhead and a bigger memory footprint. The DRI2 fallback relies on mesa's EGL which provides EGLImages.

Intel Drivers

Gallium Nine could be used with the new Crocus driver (included since Mesa 21.2) on older Shader model 3.0 aka feature level 9_3 compatible Intel gen4-7 graphics (GMA X3000, GMA 4500, HD 2000-5000; year 2007-2014).

Use the environment variable MESA_LOADER_DRIVER_OVERRIDE=crocus to force using Crocus instead of i965.

All newer Intel iGPU hardware (Broadwell+) is supported through the already working Iris driver.

Debugging

You can use the environment variable D3D_BACKEND to force one of the supported backends:

If not specified it prefers DRI3 over DRI2 if available.