Skip to content

Instantly share code, notes, and snippets.

@JanGalek
Last active January 7, 2026 16:33
Show Gist options
  • Select an option

  • Save JanGalek/9067297936970c26382440a317951ef2 to your computer and use it in GitHub Desktop.

Select an option

Save JanGalek/9067297936970c26382440a317951ef2 to your computer and use it in GitHub Desktop.

Steam

Lists of ENV

ENV Value Note
mesa_glthread true
RADV_PERFTEST gpl
AMD_VULKAN_ICD RADV
MESA_VK_WSI_PRESENT_MODE mailbox
DXVK_ASYNC 1
MESA_SHADER_CACHE_MAX_SIZE 10G
DXVK_LOG_LEVEL none
VKD3D_LOG_LEVEL none
WINEDEBUG -all
DXVK_HUD 0 compiler
VKD3D_CONFIG dxr12 dxr11
VKD3D_FEATURE_LEVEL 12_1
VKD3D_SHADER_MODEL 6_6
PROTON_ENABLE_WAYLAND 1 0
PROTON_FSR4_UPGRADE 1
WINE_FULLSCREEN_FSR 1
WINE_FULLSCREEN_FSR_MODE balanced
WINE_FULLSCREEN_FSR_STRENGTH 2
PROTON_DLSS_UPGRADE 0 For Nvidia (old)

DirectX12 Bug

VKD3D_CONFIG=dxr12 VKD3D_FEATURE_LEVEL=12_1 VKD3D_SHADER_MODEL=6_6 mesa_glthread=true PROTON_ENABLE_WAYLAND=1 RADV_PERFTEST=gpl AMD_VULKAN_ICD=RADV MESA_VK_WSI_PRESENT_MODE=mailbox DXVK_ASYNC=1 MESA_SHADER_CACHE_MAX_SIZE=10G DXVK_LOG_LEVEL=none DXVK_HUD=0 VKD3D_LOG_LEVEL=none WINEDEBUG=-all gamemoderun %command%

Performance

 mesa_glthread=true RADV_PERFTEST=gpl AMD_VULKAN_ICD=RADV MESA_VK_WSI_PRESENT_MODE=mailbox DXVK_ASYNC=1 MESA_SHADER_CACHE_MAX_SIZE=10G DXVK_LOG_LEVEL=none DXVK_HUD=0 VKD3D_LOG_LEVEL=none WINEDEBUG=-all gamemoderun %command%

Crash on startup

steam --reset

Steam Library-Must be on a filesystem mounted with execute permissions

Deleting Windows hibernate metadata As an alternative to above clean shutdown method, there is a way to completely destroy NTFS metadata that was saved after hibernating. This method is only feasible if you are not able or unwilling to boot into Windows and shut it down completely. This is by placing remove_hiberfile option when you are mounting your NTFS file system using ntfs-3g.

mount -t ntfs-3g -o remove_hiberfile /dev/your_NTFS_partition /mount/point

Proton-tricks

https://github.com/Matoking/protontricks

Proton - Sound

I tried the WINEPREFIX solution mentioned above to no avail, ended up finding protontricks that stratus mentioned on github soon after.

Here is what worked for me:

Fetch protontricks from github and mark executable wget https://raw.githubusercontent.com/Sirmentio/protontricks/master/protontricks && chmod +x protontricks

move protontricks to /usr/bin so it can be ran from terminal sudo mv protontricks /usr/bin/protontricks

setup xact for banished on steam protontricks 242920 xact

run winecfg for banished prefix using protontricks protontricks 242920 winecfg

click on libraries and add xact and xaudio2_7, leave them with native, builtin https://i.imgur.com/lvguBoG.png

this is with Ubuntu 18.04, WINEPREFIX solutions did not work for me in this case, but this did.

Video memory size

env WINEPREFIX="/home/warfacez/Games/SteamLibrary/steamapps/common/Proton 4.11/dist/share/default_pfx" WINEPATH="/home/warfacez/Games/SteamLibrary/steamapps/common/Proton 4.11/dist/bin/wine64" winetricks videomemorysize=2048

Game performance

mesa_glthred

https://www.gamingonlinux.com/wiki/Performance_impact_of_Mesa_glthread

GameMode

https://github.com/FeralInteractive/gamemode

ARK

put this into console (tab)

r.bloomquality 0
r.lightshafts 0

(AMD Radeon R9 390)

sudo vim /etc/default/grub
GRUB_CMDLINE_LINUX="rhgb quiet iommu=pt amd_iommu=on amdgpu.modeset=1 amdgpu.cik_support=1 radeon.cik_support=0 amdgpu.dc=1 pci=nommconf"

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Video

https://rpmfusion.org/Howto/Multimedia

sudo dnf swap ffmpeg-free ffmpeg --allowerasing
sudo dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
sudo dnf swap mesa-va-drivers mesa-va-drivers-freeworld
sudo dnf swap mesa-vdpau-drivers mesa-vdpau-drivers-freeworld
reboot

This will resolve Steam unaible to retlive clip information (2) also ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment