In order to use gamemode in PlayOnLinux succesfully, you can add the following lines in the "PlayOnLinux -> Configure -> select the virtual drive -> Miscellaneous tab -> Command to execute before running the program":
export GAMEMODEAUTO="/usr/\$LIB/libgamemodeauto.so.0" && export LD_PRELOAD="${GAMEMODEAUTO}${LD_PRELOAD:+:$LD_PRELOAD}"
I have taken these commands from the /usr/bin/gamemoderun file which is a bash scrip file. By running gamemoded -s in the terminal you can check of gamemode has been enabled while running any game in PlayOnLinux.
Edytowane przez DrM1173