I recently picked up the Steam version of Doom and was able to get it to run using Wine (3.13 Staging) and Lutris. While running it with the Vulkan API enabled, the framerate would consistently drop from 60+FPS down to less than 10(?!) 3-5 minutes after launching the game.
I tested it with older versions of Wine and the long live version of Nvidia’s proprietary drivers (390), but I got the same result regardless. I uninstalled the game for now and decided to post here before reinstalling it and trying again. Has anyone else experienced this?
System Specs:
AMD Ryzen 5 1600
16GB DDR4
GTX 1070ti
Xubuntu 18.04.1 LTS
Linux Kernel 4.15
Nvidia Proprietary Drivers (396.51)
UPDATE - SUCCESS!!! Telling the CPU Governor to floor it did the trick. Thanks, FurryJackman
You need to set your CPU performance governor to “performance.”
So before, in Ubuntu 16.04 and below, /etc/init.d/ondemand was responsible for changing the CPU frequency to “ondemand” which caused issues while gaming with the processor downclocking. This is why Feral Interactive created Linux “GameMode” which sets the frequency governor to “performance”
Trouble is, the fix is extremely simple… Just change echo -n ondemand > $CPUFREQ to echo -n performance > $CPUFREQ
Ubuntu 18.04 relocated this script to instead of being in /etc/init.d/ondemand to instead be a script that is called upon by a ondemand.service in /lib/systemd/set-cpufreq
A glance at /lib/systemd/set-cpufreq makes it look practically identical to the previous /etc/init.d/ondemand!
How do we set the CPU Governor to “performance?”
Starting from Line 37:
echo "Setting $GOVERNOR scheduler for all CPUs"
for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
do
[ -f $CPUFREQ ] || continue
echo -n $GOVERNOR > $CPUFREQ
done
...
Change to
echo "Setting performance scheduler for all CPUs"
for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
do
[ -f $CPUFREQ ] || continue
echo -n performance > $CPUFREQ
done
...
Save the file and reboot. That’s literally it. Don’t change anything before line 37 and past done. The file you have might have different indentation than the example I gave so this is only for reference. DON’T COPY AND PASTE THE EXAMPLE.
Once again, modify /lib/systemd/set-cpufreq to change the governor in 18.04.
(Those that saw this early, Tab spaces don’t work on this forum…)
Makes a huge difference in Vulkan games, cause on “powersave,” your processor doesn’t even reach max frequency AT ALL…
1 Like
Thank you. I’ll give it a shot and post an update if it solves the issue.
1 Like