Divinity 2 on Linux: Notes & Tips

From Retro Media HUB
Divinity2dc-cover.png
Game Information
Title Divinity II: Developer's Cut
Year 2012
Developer Larian Studios NV
Graphics API Direct3D 9.0c
Audio API DirectSound



Runtime Environment

  • Wine Prefix: wine-proton-9.0-1-amd64
  • DXVK Version: 2.7.1 (used to translate DirectX 9 to Vulkan)

Required Winetricks

To play the game and ensure movies work correctly, install the following via Winetricks:

  • physx
  • wmp9
  • quartz
  • openal
  • corefonts
  • tahoma

Additionally, install the following system component:

Audio Configuration

  • DSOAL was installed in the syswow64 directory because dsound.dll is not loaded if placed in the game’s bin folder.
  • Debugging audio issues: WINEDEBUG=+quartz,+dsound wine Divinity2.exe &> wine-audio.log

Video Playback Fix

  • If movies have crackling audio, reencoding the videos can fix the problem.
  • Cut-scene playback had issues due to 48kHz sample rate. Converting videos to 44.1kHz resolves this.
  • Some videos with 5.1 surround sound were converted to 2-channel 44.1kHz for consistency.

Additional Note:

Since the game has problems playing in-game videos, I reencoded the videos and uploaded them to Archive.org.

After downloading the archive, extract it into the Data folder and the in-game video audio should play correctly.

Performance Tweaks

  • Installed community patch: Div2Patch_v0.97_NoSetup to resolve slowdown and improve performance.
  • Disabled FPS cap in game settings and maxed out all graphical options.
  • Installed dgVoodoo2 wrapper for better compatibility.
    • Set anti-aliasing to 4x via dgVoodoo2 control panel.
    • Disabled in-game anti-aliasing.

Launcher Behavior

Lutris Launcher

  • Cut-scenes play correctly using default GStreamer (likely version 1.22.12).
  • Only physx from Winetricks appears necessary.

Heroic Launcher

  • Game fails to play cut-scenes with system GStreamer (likely version 1.24).
  • Works when passing these environment variables:
LD_LIBRARY_PATH=/home/deck/.local/share/gstreamer-1.0
GST_PLUGIN_SYSTEM_PATH_1_0=/home/deck/.local/share/gstreamer-1.0

Environment Notes

  • Copied GStreamer libraries into /home/deck/.local/share for reuse with other games.
  • Default LD_LIBRARY_PATH is not set correctly in Lutris.
  • wine-ge-8-26 fails to use GStreamer unless manually set in prefix settings: LD_LIBRARY_PATH=/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/wine-ge-8-26-x86_64/lib

Downloads


Screenshots

Divinity II - Main Menu
Divinity II - Gameplay
Divinity II - In-game Menu