so, whenever i open cs2 and join a match it lags then crashes after a few minutes, specially when i’m using default graphics which high. another problem is the frame rates are higher in linux compared to windows in this particular game with my gpu which intel arc a750 but i get half of the fps and unplayable game experience. these are the lines i added in my configuration.nix file to install steam and some drivers,
hardware = {
graphics = {
enable = true;
extraPackages = with pkgs; [
vpl-gpu-rt
# i had these 3 then figured out they have no effect.
#libvdpau-va-gl
#intel-media-driver
#intel-compute-runtime
];
};
};
programs = {
steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
};
so steam downloads the shaderes everytime after a restart by default.
You can disable it by going into the steam settings ->Downloads-> at the bottom disable shader pre chace.
For the instability:
Have you problems in other games (can you post your performance with mangohud)?
Have you trieded other steam proton versions?
Which graphics settings do you have in CS
i disabled the settings for pre-caching but sadly i don’t know how to use mongohub. i also do not have any idea about what steam proton versions are. im playing the game in default graphics which is 1080p high. and i do not have any other game installed. what i did few minutes ago is that removing all the hardware.graphics.extrapackages and i am still getting the same fps with the same issue which is crashing after a few minutes and unplayable lag.
so mango hud is like msi Afterburner but for linux. To install it put mangohud in your packages and add following to your launch options:
mangohud %command%
next to change the proton version go into your game properties → compatibility → Force to use a specific tool-> there try out steam linux runtime 3.0 Sniper
If this does not work try Proton experimental/hotfix.
This is also not a problem with your config or nixos. Maybe try downloading other games and see if these are working correct
So a couple of things here.
First of all can you post your system specs and versions(kernel nixos kde wayland…).
Second pleas post the output of this command lspci -k | grep -EA3 'VGA|3D|Display'.
Third you should not run “Steam Linux Runtime 3.0(sniper)”, you should put it in the compatibility tool. For this do the following:
1.
so, after putting boot.initrd.kernelModules = ["i915"]; then rebuilding and restarting mangohud still shows 0% gpu usage. one thing i noticed restart was faster than usual. by the way, not only i added the line but also removed the lines. could it be possible mangohud is broken and not showing gpu usage as the game cannot be opened without using a gpu and i dont have igpu?
Ok. I think at this point the only thing we can test is if you got the same problem in other games.
If you do not have problems in other games it is something with CS. If you have the same problem there could be something wrong with the drivers for the gpu, the compositor or something else.
Maybe try launching kde in Xorg rather than wayland and see if it is any better.
If not try running another game like marvel rivals, wareframe or any other game.
I tried only xorg but it was same. And I tried running mangohud on there small games like combat master but the menu only pops up on cs2. Then I installed arch and the experience was similar and a bit worse. Now installed Ubuntu and installing the game.