Posted November 20, 2017
I'm running West of Loathing on Ubuntu 16.04.3, 64-bit. The "Lock framerate to 30" option in Video Options does not work; if I try to enable it, it will be unchecked next time I open the Video Options menu.
The reason I want to lock the framerate is because the game is causing heavy UI lag when I alt-tab away from the game, which makes it near impossible to multitask while playing. I suspect this is happening because the framerate is ungoverened. The main evidence I have of this is the game uses *more* CPU when it's minimized than when it's visible.
With the main menu open and game in *foreground*, vmstat output:
$ vmstat -w 2
procs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu--------
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 5535400 872664 6751404 0 0 77 76 170 30 23 7 70 0 0
1 0 0 5535276 872664 6751404 0 0 0 0 1626 13791 12 17 70 0 0
1 0 0 5534904 872664 6751404 0 0 0 6 1552 12917 12 18 70 0 0
1 0 0 5534860 872664 6751404 0 0 0 0 1597 13084 12 18 70 0 0
1 0 0 5534872 872664 6751404 0 0 0 0 1563 13233 12 17 71 0 0
Same situation but with the game *minimized*:
procs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu--------
r b swpd free buff cache si so bi bo in cs us sy id wa st
2 0 0 5519364 872676 6754744 0 0 76 76 172 61 23 7 70 0 0
5 0 0 5518408 872676 6754744 0 0 0 0 5134 105641 38 7 55 0 0
1 0 0 5518048 872676 6754744 0 0 0 0 5331 108265 38 6 56 0 0
3 0 0 5518048 872676 6754744 0 0 0 8 5872 113969 38 7 55 0 0
2 0 0 5517892 872676 6754744 0 0 0 0 5535 112499 38 6 56 0 0
The "user" CPU time goes up from 12% to 38%, an increase of 25 percentage points. This is on a CPU with 4 hyperthread cores, so that 25 point increase is equivalent to 1 whole busy core. Notice also the massive increase in context switches (from ~13000 to ~110000) and interrupts (~1600 to ~5500).
The reason I want to lock the framerate is because the game is causing heavy UI lag when I alt-tab away from the game, which makes it near impossible to multitask while playing. I suspect this is happening because the framerate is ungoverened. The main evidence I have of this is the game uses *more* CPU when it's minimized than when it's visible.
With the main menu open and game in *foreground*, vmstat output:
$ vmstat -w 2
procs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu--------
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 5535400 872664 6751404 0 0 77 76 170 30 23 7 70 0 0
1 0 0 5535276 872664 6751404 0 0 0 0 1626 13791 12 17 70 0 0
1 0 0 5534904 872664 6751404 0 0 0 6 1552 12917 12 18 70 0 0
1 0 0 5534860 872664 6751404 0 0 0 0 1597 13084 12 18 70 0 0
1 0 0 5534872 872664 6751404 0 0 0 0 1563 13233 12 17 71 0 0
Same situation but with the game *minimized*:
procs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu--------
r b swpd free buff cache si so bi bo in cs us sy id wa st
2 0 0 5519364 872676 6754744 0 0 76 76 172 61 23 7 70 0 0
5 0 0 5518408 872676 6754744 0 0 0 0 5134 105641 38 7 55 0 0
1 0 0 5518048 872676 6754744 0 0 0 0 5331 108265 38 6 56 0 0
3 0 0 5518048 872676 6754744 0 0 0 8 5872 113969 38 7 55 0 0
2 0 0 5517892 872676 6754744 0 0 0 0 5535 112499 38 6 56 0 0
The "user" CPU time goes up from 12% to 38%, an increase of 25 percentage points. This is on a CPU with 4 hyperthread cores, so that 25 point increase is equivalent to 1 whole busy core. Notice also the massive increase in context switches (from ~13000 to ~110000) and interrupts (~1600 to ~5500).
Post edited November 20, 2017 by Voltara
This question / problem has been solved by victorca