pipewire: fix latency when gaming

This commit is contained in:
Anthony Rodriguez 2024-09-22 12:36:05 +02:00
parent e66373dda6
commit 796b637946
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
2 changed files with 6 additions and 4 deletions

View file

@ -42,6 +42,7 @@
};
modules.nvidia.enable = true;
modules.gaming.enable = true;
modules.pipewire.latencyFix.enable = true;
stylix.image = ../../wallpapers/lucy-edgerunners-wallpaper.jpg;
}

View file

@ -21,10 +21,11 @@ in
services.pipewire.extraConfig.pipewire."92-low-latency" = lib.mkIf cfg.latencyFix.enable {
"context.properties" = {
"default.clock.rate" = 48000;
"default.clock.quantum" = 32;
"default.clock.min-quantum" = 32;
"default.clock.max-quantum" = 32;
"default.clock.rate" = 48000;
"default.clock.allowed-rates" = [ 48000 ];
"default.clock.quantum" = 2048;
"default.clock.min-quantum" = 1024;
};
};
};