fufexan / nix-gaming

Gaming on Nix
MIT License
507 stars 47 forks source link

Can't get optimal performance from Rocket League #186

Open emrebicer opened 2 months ago

emrebicer commented 2 months ago

I have been using the nix-gaming#rocket-league for a while on my desktop for a while and I am mostly happy with it, works as expected, the performance is really good and I play without issues. However I have another system, this system is older and has slower hardware equipped (GPU: NVIDIA GeForce GTX 1070 and CPU: AMD Ryzen 5 1600 (12) @ 3.200GHz). On this system, I have a 144hz monitor and when I launch the rocket-league from nix-gaming it usually does 110+ fps but barely hits 144 in matches and some micro stutters make the gaming experience not so nice.

I have been using the nix-gaming#wine-tkg as I believe it is the default for nix-gaming#rocket-league anyways but to troubleshoot I also tried it with nix-gaming#wine-ge, however, it did not help with my problem. Now the part that confuses me, I also have Lutris installed on the same low-end system (from nixpkgs), and when I run Rocket League from Lutris using their lutris-GE-Proton8-15-x86_64 I have a way better gaming experience, the game mostly locks to 144Hz and I don't experience micro stutters.

I wonder how can I troubleshoot the problem, I am curious if the lutris runner is somehow different from what is shipped within this project, if that is the case is it possible to provide it with nix-gaming as well? If that is not the case are there any suggestions that I could try to match the performance with the Lutris runner?

Henry-Hiles commented 2 months ago

I have been using the nix-gaming#rocket-league for a while on my desktop for a while and I am mostly happy with it, works as expected, the performance is really good and I play without issues. However I have another system, this system is older and has slower hardware equipped (GPU: NVIDIA GeForce GTX 1070 and CPU: AMD Ryzen 5 1600 (12) @ 3.200GHz). On this system, I have a 144hz monitor and when I launch the rocket-league from nix-gaming it usually does 110+ fps but barely hits 144 in matches and some micro stutters make the gaming experience not so nice.

I have been using the nix-gaming#wine-tkg as I believe it is the default for nix-gaming#rocket-league anyways but to troubleshoot I also tried it with nix-gaming#wine-ge, however, it did not help with my problem. Now the part that confuses me, I also have Lutris installed on the same low-end system (from nixpkgs), and when I run Rocket League from Lutris using their lutris-GE-Proton8-15-x86_64 I have a way better gaming experience, the game mostly locks to 144Hz and I don't experience micro stutters.

I wonder how can I troubleshoot the problem, I am curious if the lutris runner is somehow different from what is shipped within this project, if that is the case is it possible to provide it with nix-gaming as well? If that is not the case are there any suggestions that I could try to match the performance with the Lutris runner?

Personally it works fine for me with wine-ge from here + linux-zen kernel

fufexan commented 2 months ago

I've just pushed b701f37 and 72a3814 (should've rebased, oh well). Maybe it fixes some issues.

emrebicer commented 2 months ago

I just updated my system flake to use 72a3814 and rebuilt my system. Unfortunately, the changes don't seem to help with the issue. If I use wine-ge performance gets really bad, with wine-tkg it is better but it still runs on non-optimal fps and I experience a bunch of stutters.

I disabled the refresh rate limit to see how it performs, while playing a casual game, nix-gaming#rocket-league with wine-tkg -> I get around 80-120 fps

(I switched the runner on Lutris to wine-ge-2-26-x86 (default) with the hope that it is a better comparison) Lutris with wine-ge-2-26-x86 (default) -> I get around 260-300 fps