pr1v8.ca

FL Studio 2026 on Linux with Windows plugins and iLok Cloud

· 84 min read · winefl-studioaudiolinux

FL Studio has no Linux version[1], and most of the plugins people own are Windows-only. Rebooting into Windows to make music works, but it gets old. This guide gets FL Studio 2026 and a typical commercial plugin collection running under Wine[2] on a current Linux desktop, including plugins licensed through iLok Cloud[3].

It is written for someone who already uses FL Studio on Windows, owns their plugins, and is comfortable building software from source. Everything here was done on an Arch-based distribution with KDE Plasma on Wayland, PipeWire, and an NVIDIA card. Other distributions need the same steps with their own package names.

Where things stand at the end:

Why not yabridge#

yabridge is the usual answer to “Windows plugins on Linux”, but it exists so a native Linux DAW can host Windows plugins[4]. FL Studio is itself a Windows program, so its plugins load in the same Wine process exactly as they do on Windows. No bridge is needed. yabridge also stopped working properly with Wine releases after 9.21, and for a current Wine its README offers only a downgrade or a development build[4].

Updated: 2026-11-23

Quick install#

If you’d rather not build Wine yourself, an install script does sections 1 to 7 for you with a prebuilt Wine. It runs as your normal user, puts everything under your home folder, and only uses sudo to install your distribution’s libraries, after showing you the command. Download it, read it, then run it:

curl -fLO https://git.bungee.systems/bungee/wine-fl/raw/branch/fl-studio-11.22/installer/install-fl-studio.sh
less install-fl-studio.sh
bash install-fl-studio.sh

A menu lets you pick the parts you want: the libraries, the prebuilt Wine with all the patches below, the prefix with the C++ runtime fix from section 3 and Wine Mono, the browser-pane settings from section 6, the FL Studio installer you downloaded, PipeASIO, and the launcher and menu entries from section 7. --dry-run prints every step without changing anything, --uninstall removes what it installed, and --help lists the rest. If you use Bottles, it can also add the same Wine as a runner.

The prebuilt Wine comes from the fork’s releases with a SHA-256 checksum, which the script checks. It is built in an Ubuntu 22.04 container, so it runs on Debian 12, Ubuntu 22.04, Linux Mint and LMDE, Fedora, openSUSE and the Arch family. PipeASIO is the exception: since version 1.3 it needs PipeWire 1.4.2 or newer[5], and the build needs glibc 2.38. Where either is older, as on Ubuntu 24.04 and Linux Mint 22, the script skips it and FL Studio uses its own ASIO driver through Wine’s PulseAudio output, with more latency. The recipe for the prebuilt Wine is in the fork’s installer/build folder.

The script stops after FL Studio is installed. iLok and plugins are sections 8 and 9.

The plan#

One Wine prefix for FL Studio and its plugins, run by a private build of Wine that carries a few fixes, installed under your home directory so the system Wine stays untouched. The fixes:

Patch Fixes Source
crypt32 signature order FL Studio refusing to start: “The validity of the program could not be verified”[6] WineHQ merge request !11824[7], part of Wine since 11.21[8]; only needed on older Wine
01 dxgi WaitForVBlank JUCE 7 plugin interfaces frozen after the first frame mine
02 dcomp Staging series DirectComposition for JUCE 8 plugins Wine Staging (CodeWeavers)[9]
03 dxgi composition swapchains the swapchain type JUCE 8 presents to mine
04 dcomp compositor flicker, missing functions and stale frames in 02 mine
05 d2d1 triangulation Serum freezing FL on load mine
06 ntdll SRW release needless wake-ups on every uncontended lock release mine
07 wined3d state delta full pipeline re-emits on every state swap mine
08 wined3d constant buffers every slot rebound when one buffer is renamed mine
09 d2d1 state Direct2D swapping all Direct3D state around every shape mine
10 d2d1 streaming two Direct3D buffers created and destroyed per shape mine
11 WebView2 hover the browser and FL Cloud panes flashing under the mouse mine
12 dwrite missing text a crash when an app’s text ends early mine
13 wbemprox network adapters licence activation failing with “Enable the network adapters” mine
14 d2d1 strokes straight spikes sticking out of curves mine
15 X11 re-activation menus vanishing in a Wine virtual desktop mine
16 dwrite font lookup “not implemented” when a program asks for the fonts of a family mine
17 avrt audio priority audio threads asking for “Pro Audio” priority getting none mine
18 d2d1 joins and caps round corners drawn square and line caps ignored mine
A plugin's drawing through Wine, and where each patch sits plugin UISerum, JUCE 7/8d2d1Direct2D05 09 10 14dcompDirectComposition02 04dxgi + d3d11Direct3D01 03wined3dD3D → OpenGL07 08opengl32+ ntdll locks06GPU driverNVIDIA GL crypt32: FL starts (!11824) win32u, server: window drags, hover (11) dwrite, wbemprox: licences (12 13)

If you only need FL Studio and JUCE 7 plugins, the first two are enough. 02 to 04 only matter for plugins built on JUCE 8 or anything else that draws through DirectComposition. 05 is independent of the others and fixes a hang in Wine’s Direct2D that any plugin drawing filled shapes can hit. 06 to 10 are performance work for plugins that draw many shapes with Direct2D (sections 14 and 16). 11 stops the WebView2 panes flashing (section 17), 12 and 13 are for licence activation (section 19), 14 fixes curves drawn with Direct2D (section 20), 15 is for running FL in a Wine virtual desktop (section 21), and 16 to 18 came from Wine’s own notes about what it doesn’t implement yet (section 22).

The patches also live in a public fork of Wine, wine-fl, as one commit per fix on its fl-studio-11.22 branch. The links in the table point at its patches/ folder. Cloning the branch instead of following section 2 gives you the build I run: every fix in the table plus the two Audion patches (the flicker fix with section 15’s deadlock fix, and a guard for FL’s Effectrix plugin), already applied. The fl-studio branch keeps the earlier build on Wine 11.19.

git clone --branch fl-studio-11.22 https://git.bungee.systems/bungee/wine-fl.git wine-fl

1. Audio plumbing#

FL Studio talks to audio hardware through ASIO. The cleanest route is PipeASIO, an ASIO driver that talks to PipeWire directly[10]. If your distribution pulled in jack2 as a dependency of something, replace it with PipeWire’s JACK[11] so nothing ends up talking to a JACK server that isn’t running:

sudo pacman -S pipewire-jack

Pacman offers to remove jack2[12]; accept.

2. Build the private Wine#

You need Wine’s build dependencies and the MinGW cross-compiler (mingw-w64-gcc on Arch)[13]. Download the eighteen patches from the table above into ~/Downloads, then:

mkdir -p ~/src && cd ~/src
git clone --depth 1 --branch wine-11.22 https://gitlab.winehq.org/wine/wine.git wine-fl
cd wine-fl
for p in ~/Downloads/[01][0-9]-*.patch; do git apply "$p"; done
mkdir ../wine-fl-build && cd ../wine-fl-build
../wine-fl/configure --prefix="$HOME/.local/opt/wine-fl" \
  --enable-archs=x86_64,i386 --disable-tests
make -j"$(nproc)" && make install

--enable-archs=x86_64,i386 gives the new WoW64 mode, so 32-bit plugins work without 32-bit host libraries[13]. The patches are written against 11.22[14]. The signature fix this guide first applied by hand from merge request !11824 is part of Wine since 11.21[8], so it is no longer a separate step.

What the signature fix is about#

FL Studio checks its own Authenticode signature at startup. Its signature stores the signed attributes in an order that isn’t the canonical DER order. Windows hashes them exactly as stored. Wine re-sorts them before hashing, so the hash no longer matches and a valid signature is rejected[6]. The merge request makes Wine hash the attributes as stored when verifying[7]. It does not skip or weaken the check; a damaged signature is still rejected.

Copying Windows’ own crypt32.dll and wintrust.dll into the prefix does not work around this. I tried; FL either shows the same message or quits silently.

3. Create the prefix#

export WINEPREFIX="$HOME/.local/share/wineprefixes/flstudio"
W="$HOME/.local/opt/wine-fl/bin"
"$W/wineboot" -i
WINE="$W/wine" winetricks -q corefonts

The C++ runtime, by hand#

Most plugins need Microsoft’s Visual C++ runtime, and some (PACE-protected ones in particular) need functions that Wine’s own msvcp140.dll lacks. Two traps:

Install the files directly. Run winetricks once so it downloads the redistributables into its cache[18], then:

cd "$(mktemp -d)"
for arch in x64:system32:amd64 x86:syswow64:x86; do
  IFS=: read -r a dir suffix <<< "$arch"
  mkdir "$a" && cd "$a"
  cabextract -q -L ~/.cache/winetricks/vcrun2022/vc_redist.$a.exe
  for c in a*; do cabextract -q -L -d out "$c" 2>/dev/null; done
  for f in out/*_"$suffix"; do
    cp -f "$f" "$WINEPREFIX/drive_c/windows/$dir/$(basename "$f" _"$suffix")"
  done
  cd ..
done

Check it took: WINEDEBUG=+loaddll should report MSVCP140.dll ... native, not builtin[19]. Redo this after anything that updates the prefix.

Display scaling and fonts#

Wine ignores the desktop’s scale factor[20]. Set the prefix DPI to match it[21]: 96 is 100 %, 120 is 125 %, 144 is 150 %.

"$W/wine" reg add 'HKCU\Control Panel\Desktop' /v LogPixels /t REG_DWORD /d 120 /f

Fonts looked off until two more changes: the real Windows fonts, and font smoothing, which Wine leaves off[22]. If you have a Windows installation, copy the .ttf, .ttc and .otf files from its Windows\Fonts into the prefix’s drive_c/windows/Fonts; Wine loads everything in that folder[23]. Then turn on RGB smoothing[23]:

for kv in FontSmoothing:REG_SZ:2 FontSmoothingType:REG_DWORD:2 \
          FontSmoothingGradientOrientation:REG_DWORD:1 \
          FontSmoothingOrientation:REG_DWORD:1; do
  IFS=: read -r k t v <<< "$kv"
  "$W/wine" reg add 'HKCU\Control Panel\Desktop' /v "$k" /t "$t" /d "$v" /f
done

4. Install FL Studio#

Run the normal installer with the private Wine and log in to your Image-Line account from inside FL:

"$W/wine" flstudio_win64_26.1.7.5653.exe

5. PipeASIO#

Build PipeASIO against the private Wine so it lands in that Wine’s library folders:

cd ~/src
git clone --depth 1 --branch v1.7.0 https://github.com/M0n7y5/pipeasio.git
cd pipeasio
W="$HOME/.local/opt/wine-fl"
PATH="$W/bin:$PATH" cmake -B build -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_INSTALL_PREFIX="$W" \
  -DWINEBUILD="$W/bin/winebuild" -DWINEGCC="$W/bin/winegcc" \
  -DWINE_INCLUDE_DIRS="$W/include;$W/include/wine;$W/include/wine/windows" \
  -DBUILD_SETTINGS_PANEL=OFF -DBUILD_ARM64=OFF -DBUILD_TESTS=OFF
PATH="$W/bin:$PATH" cmake --build build -j"$(nproc)"
cmake --install build
WINE="$W/bin/wine" PIPEASIO_PREFIX="$W" "$W/bin/pipeasio-register"

In FL Studio, pick PipeASIO under Options, Audio, and turn off “Mix in buffer switch”; PipeASIO’s documentation says that option causes crackling[10]. The buffer size lives in ~/.config/pipeasio/config.ini and changes take effect without restarting FL[10].

I tried WineASIO first. Its register script looks for a wine64 command[24], which new WoW64 builds no longer ship[25], and once registered by hand it failed to open in FL. With PipeASIO there is one layer fewer anyway[26].

6. The browser and FL Cloud panes (WebView2)#

FL’s Sounds browser and FL Cloud pane are WebView2, Microsoft’s embedded Chromium[27]. Under Wine they stay black. A WebView2 bug report blames graphics flags the runtime appends under Wine[28]; on this machine the actual failure is different. When Windows reports 8.1 or later, Chromium always creates a compositor that needs DirectComposition. Wine’s DCompositionCreateDevice[29] returns E_NOTIMPL[30], Chromium hits a CHECK on that, and the GPU process crash-loops until the page gives up.

On Windows 8 Chromium doesn’t use DirectComposition at all, so telling only the WebView2 runtime that it runs on Windows 8 fixes it. FL itself still sees Windows 10[2][31]:

"$W/wine" reg add 'HKCU\Software\Wine\AppDefaults\msedgewebview2.exe' \
  /v Version /t REG_SZ /d win8 /f

This worked on runtimes 149 and 155. Windows 8.1 does not work.

The WebView2 installer also leaves Edge’s update services running in the prefix, which keeps it alive after FL exits. Disable them[32], and stop the runtime from updating itself past the version you tested[33]:

for s in edgeupdate edgeupdatem; do
  "$W/wine" reg add "HKLM\\System\\CurrentControlSet\\Services\\$s" \
    /v Start /t REG_DWORD /d 4 /f
done
"$W/wine" reg add 'HKLM\Software\Policies\Microsoft\EdgeUpdate' \
  /v UpdateDefault /t REG_DWORD /d 0 /f

Microsoft documents UpdateDefault only for Windows joined to an Active Directory domain[33], which a Wine prefix is not, so treat it as a second lock: the disabled services are what stop the updates.

Updated: 2026-11-04

With patches 02 to 04 installed#

The DirectComposition patches (section 11) undo part of the Windows 8 trick. Once DCompositionCreateDevice works, Chromium uses DirectComposition again, crashes its GPU process three times on a clip call those patches don’t implement, and falls back to slower software compositing. WebView2 reads extra browser flags from the registry[34]: values under Software\Policies\Microsoft\Edge\WebView2\AdditionalBrowserArguments, named after the host program’s executable[35]. Turn DirectComposition off for FL alone:

"$W/wine" reg add 'HKCU\Software\Policies\Microsoft\Edge\WebView2\AdditionalBrowserArguments' \
  /v FL64.exe /d --disable-direct-composition /f

Other programs that host WebView2, such as vendor hubs and installers, need their own value, named after their .exe. An environment variable, WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS, is read before the registry and wins if set[35]. While a pane is open, pgrep -af msedgewebview2 shows whether the flag reached the browser process.

7. A launcher that closes the prefix with FL#

System Wine can’t start FL (it fails the signature check[6]), so every menu entry for this prefix has to use the private build. I also wanted the whole prefix, services included, to shut down when FL closes. ~/.local/bin/fl-studio:

#!/bin/sh
# fl-studio              start FL Studio
# fl-studio --app EXE    start another program of the prefix (Unix path)
# fl-studio --open FILE  run an .exe, .bat or .cmd (Unix path) in the prefix and wait
# fl-studio URL          hand a flstudio:// link to the running FL
export WINEPREFIX="$HOME/.local/share/wineprefixes/flstudio"
export WINEDEBUG="${WINEDEBUG:-fixme-all}"  # keep err: lines and crash reports
bin="$HOME/.local/opt/wine-fl/bin"
# Desktop launchers pass stdout/stderr as a journal socket, which Wine hands on as a
# handle Electron apps cannot open. Outside a terminal, log to a file instead.
if [ ! -t 2 ]; then
    logdir="${XDG_CACHE_HOME:-$HOME/.cache}/fl-studio"
    mkdir -p "$logdir"
    case "$1" in
        "") name=FL64 ;;
        --app) name=$(basename "$2" .exe) ;;
        --open) name=$(basename "$2"); name=${name%.*} ;;
        *) name=link ;;
    esac
    exec >"$logdir/$name.log" 2>&1 </dev/null
fi
mode=side
case "$1" in
    "")
        mode=fl
        cd "$WINEPREFIX/drive_c/Program Files/Image-Line/FL Studio 2026" || exit 1
        "$bin/wine" FL64.exe ;;
    --app)
        shift; app=$1; shift
        cd "$(dirname "$app")" || exit 1
        "$bin/wine" "$app" "$@" ;;
    --open)
        shift; file=$1; shift
        cd "$(dirname "$file")" || exit 1
        "$bin/wine" start /wait /unix "$file" "$@" ;;
    *)
        exec "$bin/wine" start "$@" ;;
esac
status=$?
# FL closing ends every process in the prefix. A side program closing ends it only
# when neither FL nor another program started by this script still runs.
if [ "$mode" = fl ]; then
    pgrep -x FL64.exe >/dev/null || "$bin/wineserver" -k
else
    others=$(pgrep -f '\.local/bin/fl-studio' | grep -vx "$$")
    pgrep -x FL64.exe >/dev/null || [ -n "$others" ] || "$bin/wineserver" -k
fi
exit $status

Two details in there matter more than they look. WINEDEBUG=-all is tempting because it silences Wine, but it also throws away the one line that explains a crash; with fixme-all the logs in ~/.cache/fl-studio/ stay small and still keep every err:[19]. And the log redirect is not cosmetic: started from the KDE menu, Splice (section 13) died at once with “open EBADF”, because Node.js could not open the stderr handle Wine made out of the journal socket. The check for a running FL uses pgrep -x, an exact match on the process name: pgrep -f searches whole command lines and can match the shell that runs the check.

Updated: 2026-11-04

--open runs any other Windows program or batch file in the prefix. wine start /unix takes a Unix path and starts programs and batch files alike, and /wait holds the script until the program exits[36], so the shutdown check runs at the right moment. A desktop entry, ~/.local/share/applications/fl-studio-open.desktop, turns it into an Open With choice for .exe, .bat and .cmd files (%f passes one file path[37]):

[Desktop Entry]
Type=Application
Name=Run in FL Studio Wine prefix
Exec=fl-studio --open %f
MimeType=application/vnd.microsoft.portable-executable;application/x-msdownload;application/x-ms-dos-executable;application/x-dosexec;application/x-ms-ne-executable;application/x-bat;
Icon=wine
NoDisplay=true

Use the script’s full path in Exec= if ~/.local/bin isn’t on your desktop session’s PATH. Then run update-desktop-database ~/.local/share/applications (and kbuildsycoca6 on KDE). If no other program handles these types, this entry also becomes what a double click does.

File and protocol handlers that don’t need the shutdown use a plain wrapper, ~/.local/bin/fl-wine: the same WINEPREFIX, WINEDEBUG and log redirect, then exec "$HOME/.local/opt/wine-fl/bin/wine" "$@".

Point the Exec= lines of the menu entries Wine created[38] (under ~/.local/share/applications/wine/) at these scripts: fl-studio for FL Studio, fl-studio --app "<path to the .exe>" for other programs such as iLok License Manager, fl-studio %u for the flstudio:// protocol handler (the Image-Line login uses it), and fl-wine for the rest. Then stop Wine from rewriting them on the next FL update[21]:

"$W/wine" reg add 'HKCU\Software\Wine\DllOverrides' /v winemenubuilder.exe /d '' /f

New installers then add no menu entries; add those by hand.

8. iLok Cloud#

iLok Cloud works under Wine. I only use iLok Cloud. A USB dongle needs a kernel driver, which Wine can’t load[21], and I haven’t tried machine activation.

  1. Snapshot the prefix first, because PACE installs services: cp -a --reflink=always "$WINEPREFIX" "$WINEPREFIX.pre-ilok" (on btrfs or XFS this costs almost nothing[39]).
  2. Download iLok License Support from ilok.com[40] and run License Support Win64.exe with the private Wine. Use the normal installer window: its silent mode quits with code -3 because it wants a recorded response file, and Wine re-quotes the /v"..." argument InstallShield needs.
  3. The installer also adds Apple’s Bonjour service, which isn’t needed for Cloud sessions. Disable it the same way as the Edge services ("Bonjour Service", Start = 4[32]).
  4. Open iLok License Manager, sign in, and start a Cloud Session[3]. Then load an iLok plugin in FL.

PACE’s license service (LDSvc.exe) starts with the prefix and stops with it, which fits the launcher above. While Wine’s own msvcp140.dll was installed, its log showed the same missing runtime functions that broke soothe3 (section 3). Cloud Sessions worked anyway; with Microsoft’s runtime the warnings are gone.

9. Installing plugins#

Most plugin installers have silent switches, which saves a lot of clicking:

Installer Command
Inno Setup[41] wine setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
NSIS[42] wine setup.exe /S
MSI[43][44] wine msiexec /i package.msi /qn
InstallShield use the window

strings setup.exe | grep -m1 -E 'Inno Setup|Nullsoft|InstallShield' tells you which one you have. One NSIS installer (Xfer Dimension Expander) installed nothing silently because it needs a target folder, and passing a /D= path with spaces through Wine didn’t work for me. 7-Zip unpacks NSIS installers[45], so copying the plugin DLL out of the archive into Common Files\VST2 was the quicker fix.

XLN Audio’s XLN Online Installer.exe download is a bootstrapper: it installs or updates the real app and exits without opening a window. Start the installed copy, under Program Files\XLN Audio\XLN Online Installer\, with fl-studio --app.

Installers put VST2 files in three different folders (Common Files\VST2, Program Files\Vstplugins, Program Files\Steinberg\VSTPlugins). Add all three to FL’s plugin search paths, or stick to the VST3 versions.

10. Frozen JUCE 7 interfaces#

Several plugins opened, accepted a serial typed blind, and never redrew: Trackspacer, Polyverse Wider, ShaperBox 3, and Kickstart 2, whose window stayed black. Others from the same vendors worked, which made it look random.

The split follows how JUCE 7 schedules painting. It doesn’t paint when a control changes. repaint() queues the area, and the queue is flushed from onVBlank(), which only a VSyncThread calls. That thread loops on IDXGIOutput::WaitForVBlank()[46] and sleeps 1 ms whenever the call fails[47]. In Wine the call is a stub that always returns E_NOTIMPL[48], so the window paints once and never again[49]. Every frozen plugin imports dxgi.dll and contains the VSyncThread string; none of the working ones do.

Patch 01 makes WaitForVBlank() sleep until the next refresh interval of the output’s current mode and return S_OK, the same thing DXVK does[50]. It is Wine bug 56799[49]. There is an open upstream merge request (!10246) that polls in a tight loop instead[51]; in my measurements that burned a little over one CPU core per open JUCE window, against about 15 % of one core with the sleep.

DXVK fixes these plugins too, for the same reason, but it replaces Direct3D for the whole FL process and needs d3d10core overridden as well[52], or Wider crashes. The DirectComposition patches below also assume Wine’s built-in Direct3D, so I didn’t use it.

11. JUCE 8 and DirectComposition#

soothe3 loaded and processed audio, but its editor was an empty grey rectangle. Two renderers are involved: JUCE 8’s own window renderer (Direct2D)[53] and the plugin’s interface renderer (Direct3D 11). Both present through IDXGIFactory2::CreateSwapChainForComposition and DirectComposition[54], and both calls are stubs in Wine 11.19[55][30]. JUCE 8 does not fall back to its software renderer on its own, and only the plugin’s code can choose that renderer[53][56], so there was nothing for me to switch on: DirectComposition had to work.

Wine Staging carries a DirectComposition implementation by CodeWeavers that isn’t upstream yet[9]. Patch 02 is that series, squashed for 11.19, minus a part that needs wineserver changes and only serves shared visual handles. On its own it still drew nothing for soothe3. Patches 03 and 04 fill the gaps:

Result: soothe3’s full interface, updating when a knob moves. Drawing costs about 9 % of one core while the editor is open and animating, mostly reading frames back from the GPU. Plugins that don’t use DirectComposition are unaffected.

Updated: 2026-10-08

12. Serum freezes FL on load#

Loading Xfer Serum (version 1) froze FL Studio. The window stayed on screen and stopped responding, and the process could not be closed normally. FL’s log, with WINEDEBUG=fixme-all so errors are kept, had one telling line:

err:virtual:virtual_setup_exception stack overflow 1856 bytes addr ... stack 0x508c0 (0x50000-0x51000-0x150000)

FL’s main thread had used up its whole 1 MiB stack[60]. When there is no room left to handle the overflow, Wine ends only that thread[61]. The window stays up with nothing left to draw it or read its input, which is what the freeze looks like.

winedbg cannot attach to a process in that state, but the dead thread’s stack stays mapped while the other threads live on. Under the default Yama setting (ptrace_scope=1)[62] a process may read the memory of its own children[63][64], so I started FL from a small Python script that waits for the overflow line in the log and then reads /proc/<pid>/task/<tid>/mem for the stack range. Mapping every value on that stack to the loaded modules turned up one return address 3,017 times in a row: d2d_cdt_insert_segment in dlls/d2d1/geometry.c, the code that triangulates a Direct2D path so it can be filled[65].

FL's main-thread stack when Wine ended the thread (1 MiB) oldest frames guard page: thread ended 2.9 %: FL, Serum and the Direct2D call into Close() 97.1 %: 3,017 × d2d_cdt_insert_segment, 336 bytes each

Serum fills a shape with no area: 247 points, all on y = 0, probably the display of an oscillator that is switched off. Some of those y values are 0.0f and some -0.0f. Wine sorts the points with a float comparison, where the two are equal, but removes duplicates with memcmp(), where they differ[65]. Two points at the same position survive, and inserting an edge between them never finishes. In stock Wine it recurses until the stack runs out.

Patch 05 makes three changes:

A test that replays Serum’s exact shape overflows on stock Wine 11.19 and finishes at once with the patch. Wine’s own Direct2D test suite runs 17,491 tests with 0 failures before and after. The function is unchanged on Wine’s master branch, so the bug is still upstream.

Updated: 2026-10-08

13. Splice#

Splice’s Windows download, splice.exe, is only 700 KB. It is a Hydraulic Conveyor bootstrapper: it downloads the real app as an MSIX package and installs it through Windows’ app-package APIs[66], which Wine does not have[67]. The package itself is an ordinary zip[66], and the bootstrapper’s update feed says where it lives:

B=https://desktop.splice.com/conveyor/stable
curl -s "$B/splice.appinstaller" | grep -o 'Uri="[^"]*msix"'
curl -fLO "$B/splice-5.4.13.x64.msix"   # the version the feed named
mkdir -p "$WINEPREFIX/drive_c/Program Files/Splice"
cd "$WINEPREFIX/drive_c/Program Files/Splice"
unzip -q ~/splice-5.4.13.x64.msix -x AppxBlockMap.xml AppxSignature.p7x

Two things to fix after unzipping:

Sign-in goes through the browser and comes back as a splice:// link, so register the scheme in the prefix[68] and on the Linux side:

"$W/wine" reg add 'HKCU\Software\Classes\splice' /ve /d 'URL:splice' /f
"$W/wine" reg add 'HKCU\Software\Classes\splice' /v 'URL Protocol' /d '' /f
"$W/wine" reg add 'HKCU\Software\Classes\splice\shell\open\command' /ve \
  /d '"C:\Program Files\Splice\Splice.exe" "%1"' /f

and a wine-protocol-splice.desktop entry with MimeType=x-scheme-handler/splice;[69] and Exec=fl-wine start %u, made the default with xdg-mime default[70].

Splice is an Electron app, so it is also where the stderr problem from section 7 showed up. Because Conveyor normally keeps it updated, this unpacked copy does not update itself; repeat the download when a new version is out. Closing Splice’s window leaves it running in the background, as on Windows.

To update, quit Splice, move the old Program Files\Splice folder aside, and unzip the new package into a fresh one: the feed names the new file, and the %40splice folder needs renaming again. The old folder can go once the new version runs. Going from 5.4.13 to 5.4.14 worked this way.

Updated: 2026-10-09

14. Slow preset switching in Serum#

Switching presets in Serum took a moment it doesn’t take on Windows. perf showed why: FL’s main thread ran at a full core for one to two seconds per switch.

FL's main thread, % of one core per second, while switching Serum presets Before: 30 switches in 91 s After: 15 switches in 44 s 100% 100% each bar is one second; idle Serum costs about 7%

Wine’s PE DLLs are built without frame pointers, so ordinary call graphs stop at the first Wine frame. The CPU’s last-branch records still give call chains[71] (perf record -e cycles:u --call-graph lbr -p <FL pid>), and mapping the sampled addresses to functions with x86_64-w64-mingw32-nm on the build tree’s DLLs showed the chain:

  1. Wine’s Direct2D swaps the whole Direct3D 11 state in before every primitive it draws and back out after it (SwapDeviceContextState)[72].
  2. Each swap makes wined3d re-send every binding to OpenGL.
  3. Each OpenGL call goes through Wine 11’s opengl32 object-name table, which takes a shared SRW lock per lookup[73].
  4. Releasing that lock always woke waiters, even when there were none[74].
Where a preset switch went, before (306,425 samples) 36% Wine's SRW lock (opengl32 object table)20% wined3d13% NVIDIA OpenGL driver4% Serum's own code27% everything else

No other thread competed for the lock; the cost was one thread doing far more work than it needed to. Turning off wined3d’s command-stream thread (csmt=0)[31] only moved the time from waiting on the queue to the lock, so I put it back.

Four patches remove most of it:

A benchmark that draws 2,000 small shapes per frame through an HWND render target went from 51.4 to 19.8 ms per frame with the same pixel output. Wine’s Direct2D tests pass with 0 failures and its Direct3D 11 tests fail the same tests before and after. In FL:

Main-thread CPU per preset switch (idle redraw subtracted) before 1.20 s after 0.27 s (includes window dragging)

Serum 2 is built on JUCE 8 and draws on its own Direct3D device, so it gets 06 to 08 but not 09.

Updated: 2026-10-09

15. A freeze when dragging plugin windows#

The first version of patch 09 froze FL a few seconds after Serum’s interface appeared, both times right after I dragged the plugin window. A trace of every DLL load and thread detach (WINEDEBUG=+loaddll,trace+module) showed an exiting FL worker thread stuck in imm32’s thread-detach handler, holding the loader lock, while the main thread waited.

The cause turned out to be older than patch 09. My build also carries the OpenGL-flicker patch from the Audion project, which re-presents OpenGL child surfaces whenever a window surface is flushed[75]. One of those flushes runs from window_surface_set_shape() while win32u holds its user lock, and the X11 driver’s present then waits for its window-data mutex. Other threads take that mutex first and then call back into win32u for the user lock: creating or destroying a window, including the IME window a thread destroys when it exits. Two locks taken in opposite orders, so any Direct2D or Direct3D plugin window could freeze FL while being dragged. Patch 09 only made it far more likely.

A small test program that drags a Direct2D child window around from another thread while worker threads create windows and exit hung 2 out of 2 runs with the flicker patch and finished 3 out of 3 runs with the fix, which skips the re-present on that one path. If you use Audion’s flicker patch, apply the fix with it; on 11.19 Audion’s patch itself needs git apply -C1.

Updated: 2026-10-09

16. One buffer per context instead of two per shape#

With the state swaps gone, the next cost was buffer churn. For every shape it draws, Wine’s Direct2D created a vertex buffer and an index buffer, uploaded the shape into them, drew, and destroyed them[72]. Every fill and outline goes through two functions, d2d_device_context_fill_geometry() and d2d_device_context_draw_geometry(), so rectangles, lines, ellipses, text and paths all paid it. In the benchmark the upload, creation and destruction of those buffers took about 30% of Wine’s rendering thread.

Patch 10 gives each device context one 1 MiB vertex buffer and one 256 KiB index buffer. Each draw appends its data with a D3D11_MAP_WRITE_NO_OVERWRITE map; when a buffer is full it is renamed with D3D11_MAP_WRITE_DISCARD[76] and filled from the start, and anything larger than a buffer still gets a buffer of its own. The upload happens under the same per-context lock the drawing code already held, so it adds no lock and no shared state. Buffer creations and deletions in the benchmark went from about 11,000 per 8 frames to under 25.

It is enabled for 64-bit processes only. wined3d does not keep buffers mapped in 32-bit processes[77], so every one of those maps waits for the rendering thread, and that was far slower than the old way.

Benchmark: 2,000 shapes per frame through an HWND render target stock Wine 11.1951.4 ms+ 06 to 0920.9 ms+ 1013 mscached paths, 06 to 0922.4 mscached paths, + 1011.5 ms

In FL the main thread’s cost per switch stayed at 0.27 s, because what remains there is mostly Serum’s own code (38% of the samples). Across all of FL’s threads the switch got cheaper, and Wine’s rendering thread did about half the work:

In FL: CPU per Serum preset switch, all threads, above idle 06 to 090.52 s+ 100.38 s

Caching buffers on geometry objects that an app draws repeatedly would save well under a millisecond per frame after this, so I left it out. Wine’s Direct2D tests pass with 0 failures, including a new test that wraps both buffers several times, and the drag test from section 15 still finishes every run.

Updated: 2026-11-04

17. Panes flashing under the mouse#

With the WebView2 panes working, FL’s Cloud pane, and Splice’s window too, flashed black or white whenever the mouse moved over them. Stock Wine does this as well. A WebView2 pane is a child window that belongs to another process, the browser, which draws into it directly. FL’s main window doesn’t have the WS_CLIPCHILDREN style, which on Windows keeps a parent’s drawing out of its children’s area[78], and Wine’s surface for FL didn’t leave children of other processes out either. Every time FL repainted under the cursor, its own unpainted pixels covered the pane until the browser presented its next frame.

Patch 11 makes the server leave other processes’ child windows out of a top-level window’s surface, and makes win32u update that clip when such a child moves, appears or hides. On FL’s Cloud page, a mouse sweep across the pane showed 12 to 17 black frames before the patch and none after. Both panes now stay steady.

Updated: 2026-11-04

18. Projects on a network share#

My FL projects live on a network share, and the projects remember the drive letter the share had on Windows. Mount it on the Linux side on first access, so a sleeping NAS never holds up the boot, then give it the same letter inside the prefix. Three values differ between setups:

Placeholder What it is Example
<NAS> the NAS’s address or host name 192.0.2.10
<SHARE> the share’s name, as the NAS lists it Music
<LETTER> the drive letter the share had on Windows, lower case f

A line for /etc/fstab; guest only works for a share that allows guest access, otherwise use a credentials= file[79]:

//<NAS>/<SHARE>  /mnt/<SHARE>  cifs  guest,uid=1000,gid=1000,file_mode=0664,dir_mode=0775,vers=3.1.1,iocharset=utf8,_netdev,nofail,noauto,x-systemd.automount,x-systemd.mount-timeout=15  0 0

x-systemd.automount creates an automount unit, so the share is mounted when something first opens the folder; nofail keeps the boot from waiting for it, and x-systemd.mount-timeout gives up after 15 seconds[80]. uid= and gid= (id -u and id -g print yours) make you the owner of the files, which the NAS doesn’t report over guest access[79]. Create /mnt/<SHARE>, then run sudo systemctl daemon-reload and start the automount unit, named after the mount point: sudo systemctl start mnt-<SHARE>.automount for a share name without dashes or spaces.

A drive letter in the prefix is a symlink in its dosdevices folder. The trap is Wine’s mount manager: when a USB stick or another removable drive appears, it takes the first letter from C: onward for which neither <letter>: nor <letter>:: exists in dosdevices[81], and drops any drive it already knows under that letter[82]. A link made while Wine runs isn’t known to it yet, so a stick plugged in earlier can take the letter, and the link disappears. Make the link with the prefix stopped:

"$W/wineserver" -k
ln -sfn "/mnt/<SHARE>" "$WINEPREFIX/dosdevices/<LETTER>:"

The shell doesn’t complain about a placeholder left inside quotes, so replace all of them first. Wine reads the link at its next start, and the stick moves to another letter. FL then opened a project from the share with all its paths resolved.

Updated: 2026-11-04

19. Licence activation in Mastering The Mix#

Mastering The Mix activates its plugins (LEVELS, RESO and others) through its Installer Manager. Under Wine that failed twice, for two unrelated reasons.

First it crashed as activation started: a page fault on a null pointer inside Wine’s DirectWrite, in text_source_get_u32_char(). To keep surrogate pairs together, DirectWrite asks the application for more text once one character or fewer is left in its current chunk[83]. The Installer Manager answers with no text, which Microsoft documents as the end of the text[84], and Wine read through the null pointer anyway. Patch 12 treats it as the end of the text, as the neighbouring function in Wine already does. A small test program with a text source that only answers its first position crashed the same way on stock Wine and passes with the patch.

Then activation stopped with error 28, “Enable the network adapters and retry”. The Installer Manager licenses through wyDay’s TurboActivate, and 28 is its TA_E_ENABLE_NETWORK_ADAPTERS[85]. A WMI trace (WINEDEBUG=trace+wbemprox) showed the cause. To fingerprint the machine, the library asks for the physical network adapters through the MSFT_NetAdapter class in the root\StandardCimv2 namespace[86], filtered on Virtual = FALSE and the interface type. Wine 11.19 has that namespace but no classes in it[87], so the query returned nothing, and an empty list reads as “all adapters disabled”.

Patch 13 adds MSFT_NetAdapter with the properties that query uses, among them PermanentAddress, Virtual, InterfaceType and NdisPhysicalMedium[86]. Which adapters count as physical matters, because the licence is tied to them: a Docker bridge or a VPN tunnel that comes and goes would change the fingerprint. On this machine the Ethernet and Wi-Fi cards have a device link under /sys/class/net/<interface>/ and the Docker interfaces don’t, so the patch treats only interfaces with that link as hardware. Wine’s WMI test for the new class fails without the patch (“no network adapters”) and passes with it. With patches 12 and 13, LEVELS and RESO activated.

Updated: 2026-11-04

20. Spikes on Direct2D curves#

RESO, Mastering The Mix’s resonance tool, draws its spectrum as stroked curves. Under Wine, thin straight lines stuck out of them, mostly around peaks, where Windows shows a clean line.

I guessed twice before measuring. Both guesses found real bugs in Wine’s Direct2D, so patch 14 fixes them too:

Neither was RESO’s problem. A trace of its Direct2D calls (WINEDEBUG=trace+d2d; the patch adds every segment’s points to that trace) showed curves made almost entirely of short quadratic Béziers: 226,000 of them in six seconds, against 1,700 cubics. To get RESO to draw at all outside FL, I fed it pink noise and three sine tones from a small VST3 test host. A program that replays one traced figure through Direct2D and counts lit pixels more than 2.75 px from the true path, half the stroke width plus 1.5 px, then reproduced the spikes without the plugin: 2,681 such pixels. Replaying longer and longer prefixes of the figure found the first bad joint.

Why the spikes appear (schematic) Wine 11.19: a 25-unit slab at in-line joints patch 14: no join where pieces meet in line dots: joints between pieces

A smooth curve built from quadratic pieces has its control points mirrored through each joint, so neighbouring pieces meet exactly in line. Wine’s outline code took every join between collinear segments for a path that turns back on itself, and for that case it draws a slab 25 units long straight ahead[92]. For a real reversal that is close to what Windows draws with the default miter limit, and Wine’s tests check it against Windows. At a straight continuation it is wrong, and when the pieces are 3 units long the slab sticks out along the tangent while the curve bends away. A rarer case did the same: a piece whose control point lies on its start point has no direction there, and the zero direction was taken for a reversal too.

Patch 14 adds no join at a straight continuation, takes the direction from the far end point when a control point lies on an end point, and skips joins that have no direction at all. The replayed figure went from 2,681 stray pixels to none, RESO looks as it does on Windows, and Wine’s Direct2D tests pass, including new ones for each case.

Updated: 2026-11-23

21. Menus vanishing in a Wine virtual desktop#

A reader runs FL inside a Wine virtual desktop, the mode where Wine draws all of its windows inside one window of its own. There, opening View → Toolbars made the View menu disappear, and the Toolbars submenu never showed, yet clicking the empty space still picked its items. The other menus looked normal, and on a normal desktop the same submenu draws fine.

A Wine trace of those steps showed both menus created and shown, then FL’s main window repainted over exactly their two rectangles. While the submenu opens, FL activates its main window again, though it is already the active window. Wine’s set_active_window() skips the activation itself in that case but still calls the display driver[93]. The X11 driver sets X focus on windows that no window manager handles, which inside a virtual desktop is all of them, and raises each one to the top of the X stacking order as it does so[94]. The main window ended up above its own menus. On Windows an owned window is always above its owner[95]. As far as Wine and FL were concerned the menus were still showing, so clicks still reached them.

Patch 15 raises the window only when the active window actually changes. A small test program that shows an owned popup and re-activates its owner in a virtual desktop found the owner covering the popup without the patch and the popup on top with it, and View → Toolbars now opens normally in a virtual desktop.

Updated: 2026-11-23

22. Wine 11.22, and three fixes from Wine’s own notes#

Wine 11.22 came out on 13 November 2026[14], three releases after the 11.19 this guide started on. The signature fix from merge request !11824 is part of Wine since 11.21[8], so FL starts on stock Wine from that release on. Every other fix still applied; three places needed small changes where Wine had renamed things nearby. Wine Staging’s DirectComposition series is the same in 11.22 as in 11.19 apart from the part patch 02 leaves out. On the rebuilt Wine, the Direct2D, DirectWrite and WMI tests gave the same results as on 11.19, and FL, the plugins and the licences above work as before.

With Wine’s FIXME notes left on (a WINEDEBUG without fixme-all), the log lists every place where a program asked Wine for something it only pretends to do. Most of FL’s are harmless. Three were worth fixing:

Each of the three has a test in Wine’s test suite that fails without the patch and passes with it.

What works and what doesn’t#

Status
FL Studio 2026, login, browser and Cloud panes works; 11 stops the hover flash
PipeASIO audio works
iLok Cloud (License Manager, Cloud Session, Slate Fresh Air) works
soothe3 (JUCE 8, iLok) works with 02 to 04
Trackspacer, Wider, ShaperBox 3, Kickstart 2 (JUCE 7) work with 01
Xfer Serum works with 05; preset switching with 06 to 10
Splice (app, sign-in, sample downloads) works, unpacked by hand (section 13)
Mastering The Mix Installer Manager (LEVELS and RESO activated) works with 12 and 13
Mastering The Mix RESO (spectrum curves) works with 14
FL Studio in a Wine virtual desktop (menus and submenus) works with 15
Round corners and line caps on Direct2D strokes works with 18
Audio threads asking for “Pro Audio” priority raised with 17 (nice -11 here)
XLN Online Installer works, started from its installed copy
ShaperBox 2, Xfer OTT, Spire worked unpatched
MIDI the “PipeWire-System” and “PipeWire-RT-Event” entries always fail to open; they are PipeWire’s own sequencer clients[102], not devices, so disable them

Still open#

All eighteen patches are LGPL-2.1-or-later like Wine[103]. Patch 01 belongs upstream on bug 56799, 03 and 04 are improvements to the Staging series, the deduplication line in 05 is a one-line upstream fix, and 06 to 18 are candidates too.

Updated: 2026-11-04

Sources#


  1. FL Studio Windows vs macOS Support, Image-Line. Compares the two platforms FL Studio is released for, Windows and macOS. ↩︎

  2. Wine User’s Guide, WineHQ wiki. Covers prefixes, DLL overrides and per-application Windows versions, and names Windows 10 as Wine’s default version. ↩︎↩︎

  3. iLok Cloud, iLok Help (PACE). iLok Cloud authorizes licenses over an internet connection; a session is opened with File, Open Cloud Session in iLok License Manager. ↩︎↩︎

  4. yabridge, yabridge project README. A way to use Windows VST2, VST3 and CLAP plugins in Linux hosts; tested with Wine Staging 9.21, and Wine 9.22 and 10.x do not work with yabridge 5.1.1. ↩︎↩︎

  5. CMakeLists.txt at v1.7.0, PipeASIO. Requires libpipewire-0.3 1.4.2 or newer. ↩︎

  6. Bug 60273: crypt32 signature verification re-sorts PKCS#7 authenticated attributes, WineHQ Bugzilla. FL Studio 2026 shows this message because Wine re-sorts signed attributes that are not in DER order before hashing them. ↩︎↩︎↩︎

  7. Merge request !11824: crypt32: Preserve authenticated attribute order when verifying signatures, WineHQ GitLab. Merged on 19 October 2026; verification keeps the stored order, signing still sorts. ↩︎↩︎

  8. crypt32: Preserve authenticated attribute order when verifying signatures, Wine commit of 19 October 2026, first released in Wine 11.21. The !11824 fix, upstream. ↩︎↩︎↩︎

  9. Wine Staging v11.19: dcomp-DCompositionCreateDevice2, WineHQ GitLab. A 67-patch DirectComposition series written at CodeWeavers and not part of upstream Wine. ↩︎↩︎

  10. PipeASIO 1.7.0 README, PipeASIO project. An ASIO driver that connects straight to PipeWire; recommends turning off FL Studio’s Mix in buffer switch against crackling, and re-reads config.ini while running. ↩︎↩︎↩︎

  11. PipeWire: JACK clients, ArchWiki. JACK support comes from the pipewire-jack package. ↩︎

  12. pipewire-jack, Arch Linux packages. Lists jack2 among the package’s conflicts. ↩︎

  13. Building Wine, WineHQ wiki. Lists the MinGW cross-compiler (mingw-w64-gcc on Arch) and says a new WoW64 build runs 32-bit and 64-bit programs without 32-bit Linux libraries. ↩︎↩︎

  14. Wine 11.22, WineHQ GitLab release, 13 November 2026. ↩︎↩︎

  15. vcrun2017/2019/2022: fix msvcp140_2.dll not being replaced on Wine 11+ (#2495), Winetricks. Merged after the 20260125 release; switches vcrun2022 to extracting the whole cabinet. ↩︎

  16. vcrun2022: cabextract doesn’t do what’s intended with multi-arch installers (issue 2464), Winetricks. The cabinet members carry _x86 and _amd64 suffixes, so the -F msvcp140.dll filter extracts nothing. ↩︎

  17. Bug 57518: Missing native DLLs after vc_redist installation?, WineHQ Bugzilla. Comment 6: the runtime installer skips msvcp140 because Wine’s builtin copy has a version resource it treats as up to date. ↩︎

  18. winetricks(1), Arch manual pages. Downloads are kept in $XDG_CACHE_HOME/winetricks, and WINE selects the wine binary. ↩︎

  19. Debug Channels, WineHQ wiki. WINEDEBUG syntax, including fixme-all, the err class and the +loaddll channel. ↩︎↩︎

  20. dlls/win32u/sysparams.c at wine-11.19, Wine source. The system DPI comes from the LogPixels registry value and falls back to 96. ↩︎

  21. FAQ, WineHQ wiki. Changing the DPI, disabling winemenubuilder.exe through DllOverrides, and why Wine cannot install hardware drivers. ↩︎↩︎↩︎

  22. dlls/win32u/font.c at wine-11.19, Wine source. Text is drawn without antialiasing unless the FontSmoothing registry value turns it on. ↩︎

  23. Wine, ArchWiki. Linking fonts into drive_c/windows/Fonts makes them available to Wine programs; also lists the font smoothing registry values. ↩︎↩︎

  24. wineasio-register at v1.3.0, WineASIO. The 64-bit registration step needs a wine64 command. ↩︎

  25. Wine 11.0, WineHQ GitLab release notes. The wine64 loader is removed in favour of a single wine loader. ↩︎

  26. WineASIO, WineASIO project README. Describes WineASIO as an ASIO to JACK driver. ↩︎

  27. Introduction to Microsoft Edge WebView2, Microsoft Learn. WebView2 embeds web content in native apps with Microsoft Edge, built on Chromium, as the rendering engine. ↩︎

  28. Wine (macOS/Linux): runtime appends removed --use-gl=swiftshader, so GL init aborts and the WebView paints only its first frame, WebView2Feedback issue 5720. Under Wine the runtime appends --in-process-gpu --use-gl=swiftshader, which current Chromium no longer accepts. ↩︎

  29. DCompositionCreateDevice function, Microsoft Learn. Creates the device object from which other DirectComposition objects are made. ↩︎

  30. dlls/dcomp/device.c at wine-11.19, Wine source. DCompositionCreateDevice and its variants return E_NOTIMPL. ↩︎↩︎

  31. Useful Registry Keys, WineHQ wiki. Per-application AppDefaults keys, the Version value (win8, win10 and others), and csmt, wined3d’s multi-threaded command stream. ↩︎↩︎

  32. HKLM\SYSTEM\CurrentControlSet\Services registry tree, Microsoft Learn. A Start value of 0x4 means the service is disabled and is not loaded. ↩︎↩︎

  33. Microsoft Edge Update policy documentation: UpdateDefault, Microsoft Learn. UpdateDefault under HKLM\SOFTWARE\Policies\Microsoft\EdgeUpdate set to 0 means updates are never applied; the page says the policy applies only to domain-joined Windows. ↩︎↩︎

  34. WebView2 browser flags, Microsoft Learn. Browser flags can be set on a device through the WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS environment variable or registry keys. ↩︎

  35. Globals, WebView2 Win32 API reference, Microsoft Learn. When an environment is created, environment variables are read first, then Software\Policies\Microsoft\Edge\WebView2\AdditionalBrowserArguments under HKLM and HKCU, with values named after the app’s ID, which falls back to the process’s executable name. ↩︎↩︎

  36. programs/start/start.rc at wine-11.19, Wine source. /unix starts a Unix file name the way Explorer would, and /wait waits for the program and exits with its exit code. ↩︎

  37. The Exec key, Desktop Entry Specification, freedesktop.org. %f is a single file name, even if several files are selected. ↩︎

  38. winemenubuilder, WineHQ wiki. Turns Windows shortcuts into KDE and GNOME menu entries. ↩︎

  39. ioctl_ficlone(2), Linux man-pages. A reflink shares the source file’s storage instead of copying it; Btrfs and XFS support reflinks. ↩︎

  40. Setup, iLok Help (PACE). Download links for the License Support installer, which installs iLok License Manager. ↩︎

  41. Setup Command-Line Parameters, Inno Setup Help. /VERYSILENT, /SUPPRESSMSGBOXES, /NORESTART and /SP-. ↩︎

  42. Chapter 3: Command Line Usage, NSIS Users Manual. /S installs silently; /D sets the target folder, must come last and must not be quoted. ↩︎

  43. msiexec(1), Wine man page on Arch manual pages. /i installs a package and /qn shows no UI. ↩︎

  44. msiexec, Microsoft Learn. /i is a normal installation and /qn shows no UI. ↩︎

  45. 7-Zip, 7-Zip home page. Lists NSIS among the formats it can unpack. ↩︎

  46. IDXGIOutput::WaitForVBlank method, Microsoft Learn. Halts a thread until the next vertical blank. ↩︎

  47. juce_Windowing_windows.cpp at JUCE 7.0.12, JUCE source. repaint() adds to a list of deferred repaints that onVBlank() dispatches, and VSyncThread calls WaitForVBlank() in a loop and sleeps 1 ms when it fails. ↩︎

  48. dlls/dxgi/output.c at wine-11.19, Wine source. IDXGIOutput::WaitForVBlank() is a stub that returns E_NOTIMPL. ↩︎

  49. Bug 56799: JUCE based VST plugins needs WaitForVBlank() to refresh its window, WineHQ Bugzilla. ↩︎↩︎

  50. src/dxgi/dxgi_output.cpp at v3.1.1, DXVK source. WaitForVBlank() sleeps until the next refresh period and returns S_OK. ↩︎

  51. Merge request !10246: dxgi: Implement IDXGIOutput::WaitForVBlank(), WineHQ GitLab. Open; loops on the raster status with Sleep(0) until a vertical blank starts. ↩︎

  52. DXVK README at v3.1.1, DXVK. Installing into a prefix needs native overrides for d3d8, d3d9, d3d10core, d3d11 and dxgi. ↩︎

  53. JUCE 8 Feature Overview: Direct 2D, JUCE blog. Direct2D is the default renderer on Windows; the old software renderer remains an alternative that code can select per window with setCurrentRenderingEngine. ↩︎↩︎

  54. juce_Direct2DResources_windows.cpp at JUCE 8.0.6, JUCE source. Creates its swap chain with CreateSwapChainForComposition and a device with DCompositionCreateDevice. ↩︎

  55. dlls/dxgi/factory.c at wine-11.19, Wine source. CreateSwapChainForComposition is a stub that returns E_NOTIMPL. ↩︎

  56. juce_Windowing_windows.cpp at JUCE 8.0.6, JUCE source. createNewPeer() creates every window with rendering engine 1, Direct2D; engine 0 is the GDI software renderer. ↩︎

  57. dlls/wined3d/swapchain.c at wine-11.19, Wine source. The swapchain rotates its back buffers after each present. ↩︎

  58. juce_Direct2DHwndContext_windows.cpp at JUCE 8.0.6, JUCE source. Presents with Present1 and passes the changed areas as dirty rectangles. ↩︎

  59. DXGI_PRESENT_PARAMETERS structure, Microsoft Learn. An application must not update pixels outside its dirty rectangles, and the presented frame combines them with parts of the previous frame. ↩︎

  60. Thread Stack Size, Microsoft Learn. The default stack reservation size used by the linker is 1 MB. ↩︎

  61. dlls/ntdll/unix/virtual.c at wine-11.19, Wine source. An overflow into the last stack page logs “stack overflow” and aborts only the current thread. ↩︎

  62. security/yama/yama_lsm.c at v6.17, Linux kernel source. ptrace_scope starts at 1, the relational mode. ↩︎

  63. Yama, Linux kernel documentation. In mode 1 a process may attach only to its own descendants. ↩︎

  64. proc_pid_mem(5), Linux man-pages. Access to /proc/pid/mem is governed by a ptrace access check. ↩︎

  65. dlls/d2d1/geometry.c at wine-11.19, Wine source. The triangulation sorts points with a float comparison, removes duplicates with memcmp(), and inserts segments recursively in d2d_cdt_insert_segment(). ↩︎↩︎

  66. Package formats, Hydraulic Conveyor documentation. A small installer EXE drives the Windows Deployment Engine APIs to install an MSIX package, and MSIX files are enhanced ZIP files. ↩︎↩︎

  67. Bug 59407: Multiple apps require appx/appxbundle support to install, WineHQ Bugzilla. Wine cannot install MSIX bundles; such an app can run once extracted by hand. ↩︎

  68. Registering an Application to a URI Scheme, Microsoft Learn. A scheme key with an empty URL Protocol value and a shell\open\command key. ↩︎

  69. XDG MIME Applications, ArchWiki. URI schemes are handled through x-scheme-handler MIME types. ↩︎

  70. xdg-mime(1), Arch manual pages. xdg-mime default sets the default application for a MIME type. ↩︎

  71. perf-record(1), Linux man-pages. The fp call-graph method needs frame pointers; lbr builds call chains from the hardware Last Branch Record on recent Intel CPUs. ↩︎

  72. dlls/d2d1/device.c at wine-11.19, Wine source. Each draw swaps the device context state in and out, and the geometry fill and draw paths create and release a vertex and an index buffer per call. ↩︎↩︎

  73. dlls/opengl32/wgl.c at wine-11.19, Wine source. Object-name tables guarded by an SRW lock that lookups take shared. ↩︎

  74. dlls/ntdll/sync.c at wine-11.19, Wine source. RtlReleaseSRWLockShared() calls RtlWakeAddressSingle() whenever the last shared owner leaves, without checking for waiters. ↩︎

  75. Audion, Audion project. Wine patches for music software, including a win32u patch that re-presents offscreen OpenGL client surfaces after window flushes. ↩︎

  76. D3D11_MAP enumeration, Microsoft Learn. D3D11_MAP_WRITE_DISCARD leaves the previous contents undefined; D3D11_MAP_WRITE_NO_OVERWRITE writes to vertex and index buffers without overwriting their existing contents. ↩︎

  77. dlls/wined3d/wined3d_private.h at wine-11.19, Wine source. wined3d_map_persistent() is true only when pointers are 64 bits wide. ↩︎

  78. Window Styles, Microsoft Learn. WS_CLIPCHILDREN excludes the area of child windows when the parent window draws. ↩︎

  79. mount.cifs(8), Arch manual pages. guest skips the password prompt, credentials= reads them from a file, and uid= sets the owner of files when the server reports none. ↩︎↩︎

  80. systemd.mount(5), Arch manual pages. x-systemd.automount creates an automount unit, nofail lets the boot continue without waiting for the mount, and x-systemd.mount-timeout= sets how long to wait for the mount command. ↩︎

  81. dlls/mountmgr.sys/unixlib.c at wine-11.19, Wine source. add_drive() gives a new device the first letter, from C: for disks, whose x: and x:: entries in dosdevices both don’t exist. ↩︎

  82. dlls/mountmgr.sys/device.c at wine-11.19, Wine source. add_dos_device() deletes a drive it already holds under the automatically chosen letter. ↩︎

  83. dlls/dwrite/analyzer.c at wine-11.19, Wine source. text_source_read_more() fetches the next chunk once one character or fewer is left, and text_source_get_u32_char() reads from the returned pointer. ↩︎

  84. IDWriteTextAnalysisSource::GetTextAtPosition, Microsoft Learn. Returning NULL indicates the end of the text. ↩︎

  85. TA_E_ENABLE_NETWORK_ADAPTERS exception on latest Windows 10 version, wyDay support forum. A user report of error 0x1C (28), TA_E_ENABLE_NETWORK_ADAPTERS, from TurboActivate; the forum is the only public record I found that pairs the number with the name. ↩︎

  86. MSFT_NetAdapter class, Microsoft Learn. Lives in Root\StandardCimv2; Virtual means the adapter emulates a physical card, and PermanentAddress is the address hard-coded into the port. ↩︎↩︎

  87. dlls/wbemprox/builtin.c at wine-11.19, Wine source. The StandardCimv2 namespace is registered with no classes. ↩︎

  88. D2D1_LINE_JOIN, Microsoft Learn. Miter, bevel, round and miter-or-bevel joins. ↩︎↩︎

  89. D2D1_STROKE_STYLE_PROPERTIES1 structure, Microsoft Learn. The miter limit is the limit beyond which miters are either clamped or converted to bevels. ↩︎

  90. juce_Direct2DGraphicsContext_windows.cpp at JUCE 8.0.12, JUCE source. Mitered joints map to D2D1_LINE_JOIN_MITER, and the stroke thickness goes into the miter limit field. ↩︎

  91. StrokeStyleProperties function, Microsoft Learn. The default line join is D2D1_LINE_JOIN_MITER and the default miter limit is 10. ↩︎

  92. dlls/d2d1/geometry.c at wine-11.19, Wine source. A cubic Bézier is approximated with one quadratic (a FIXME), and d2d_geometry_outline_add_join() draws a join between collinear segments 25 units ahead of the corner. ↩︎↩︎

  93. dlls/win32u/input.c at wine-11.19, Wine source. set_active_window() jumps to its end when the window is already active, and the end still calls the driver’s ActivateWindow. ↩︎

  94. dlls/winex11.drv/event.c at wine-11.19, Wine source. X11DRV_ActivateWindow() calls set_input_focus() for windows that are not managed, and it restacks the window Above before setting X focus. ↩︎

  95. Window Features, Microsoft Learn. An owned window is always above its owner in the z-order. ↩︎

  96. IDWriteFontSet::GetMatchingFonts(WCHAR const*, DWRITE_FONT_WEIGHT, DWRITE_FONT_STRETCH, DWRITE_FONT_STYLE, IDWriteFontSet**), Microsoft Learn. Returns the subset of fonts matching a family name and font properties; an empty subset when nothing matches, without an error. ↩︎

  97. Multimedia Class Scheduler Service, Microsoft Learn. Threads call AvSetMmThreadCharacteristics with a task such as “Pro Audio”, and MMCSS boosts the priority of threads working on high-priority multimedia tasks. ↩︎

  98. server/thread.c at wine-11.22, Wine source. Thread priorities map onto nice values within the range RLIMIT_NICE allows, nothing is done when the limit is 20 or less, and real-time priorities are a FIXME. ↩︎

  99. bash(1), Arch manual pages. ulimit -e is the maximum scheduling priority (“nice”). ↩︎

  100. getrlimit(2), Linux man-pages. The ceiling for the nice value is 20 minus RLIMIT_NICE. ↩︎

  101. D2D1_CAP_STYLE, Microsoft Learn. Flat, square, round and triangle line caps. ↩︎

  102. spa/plugins/alsa/alsa-seq.c at 1.6.9, PipeWire source. The ALSA sequencer bridge opens two clients named PipeWire-System and PipeWire-RT-Event. ↩︎

  103. LICENSE at wine-11.19, Wine source. GNU LGPL version 2.1 or any later version. ↩︎