pipewire: fix latency when gaming
This commit is contained in:
parent
e66373dda6
commit
796b637946
2 changed files with 6 additions and 4 deletions
|
@ -42,6 +42,7 @@
|
||||||
};
|
};
|
||||||
modules.nvidia.enable = true;
|
modules.nvidia.enable = true;
|
||||||
modules.gaming.enable = true;
|
modules.gaming.enable = true;
|
||||||
|
modules.pipewire.latencyFix.enable = true;
|
||||||
|
|
||||||
stylix.image = ../../wallpapers/lucy-edgerunners-wallpaper.jpg;
|
stylix.image = ../../wallpapers/lucy-edgerunners-wallpaper.jpg;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,10 +21,11 @@ in
|
||||||
|
|
||||||
services.pipewire.extraConfig.pipewire."92-low-latency" = lib.mkIf cfg.latencyFix.enable {
|
services.pipewire.extraConfig.pipewire."92-low-latency" = lib.mkIf cfg.latencyFix.enable {
|
||||||
"context.properties" = {
|
"context.properties" = {
|
||||||
"default.clock.rate" = 48000;
|
"default.clock.rate" = 48000;
|
||||||
"default.clock.quantum" = 32;
|
"default.clock.allowed-rates" = [ 48000 ];
|
||||||
"default.clock.min-quantum" = 32;
|
"default.clock.quantum" = 2048;
|
||||||
"default.clock.max-quantum" = 32;
|
"default.clock.min-quantum" = 1024;
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue