tModLoader

tModLoader

Not enough ratings
Play tModLoader Natively on Linux – Fix Crashes, Improve FPS
By rolleX
This guide describes how to run tModLoader on Linux natively without Proton, to avoid crashes when using many mods. It includes a script that applies performance-boosting environment variables for NVIDIA GPUs, improving OpenGL performance and stability. Simple to install, fully Linux-native, and works great with GameMode and MangoHud.
   
Award
Favorite
Favorited
Unfavorite
Hey, everybody.
Playing in tModLoader with 80 mods enabled I ran into a problem that proton crashes my game because of the large number of mods or I don't know why. This problem is only related to proton, maybe some mods are just not compatible with it.

The native version of tModLoader uses OpenGL, which is many times less productive than using Proton with Vulkan or dx11. But in the native version I didn't encounter any problems like I did when using proton.

I propose a solution to the performance problem in the OpenGL version. I wrote a script that uses environment variables to optimize the game.
Solution
Below I will attach the code for the .bash script, it is designed for Nvidia video cards (proprietary drivers). You need to run the game through this script, as the variables are applied only for this session, so it is safer.

#!/bin/bash ( export __GL_THREADED_OPTIMIZATIONS=1 export __GL_SYNC_TO_VBLANK=0 export __GL_YIELD="USLEEP" export __GL_ALLOW_UNLIMITED_COMMAND_BUFFERS=1 export __GL_MaxFramesAllowed=1 export vblank_mode=0 # Shader Cache export __GL_SHADER_DISK_CACHE=1 export __GL_SHADER_DISK_CACHE_PATH="$HOME/.nv-shader-cache" gamemoderun ~/.local/share/Steam/steamapps/common/tModLoader/start-tModLoader.sh )
Requirements
  • Steam with tModLoader installed
  • GameMode installed (gamemoderun)
  • NVIDIA Drivers (OpenGL support)
  • bash knowledge (just a little)
4 Comments
Wasd4130 5 hours ago 
Step 3: use TempleOS
LunatiK 28 Aug @ 12:21am 
Step 2: Don't listen to Lunaar because he failed to realise the disaster that is Windows
Littleguynoah 24 Aug @ 9:32pm 
linux is goated. also this aged well (i dont know if im using that right)
Lunaar 23 Aug @ 8:01pm 
Step 1: dont use linux