Skip to content

Instantly share code, notes, and snippets.

@nelsam
Created January 29, 2015 19:33
Show Gist options
  • Save nelsam/16e5c94a2924273dbaeb to your computer and use it in GitHub Desktop.
Save nelsam/16e5c94a2924273dbaeb to your computer and use it in GitHub Desktop.
Temperary Dying Light Performance Fix
#!/bin/bash
set -e
# Change this if your steam root is elsewhere
steam_root=~/.local/share/Steam
options_file="data/scripts/varlist_performance.scr"
cd "${steam_root}/SteamApps/common/Dying Light/DW/out"
unzip ../Data0.pak $options_file
sed -i 's|\(VarFloat("f_lighting_range", \)5\(0.0)\)|\1\2|' $options_file
sed -i 's|\(VarInt("i_shadows_sun_on", \)1\()\)|\10\2|' $options_file
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment