minecraft: Fix ridiculous CPU usage
Tapes over https://bugs.mojang.com/browse/MC-183518, which schedules things completely stupidly on Linux starting with 1.14.
This commit is contained in:
parent
64057828cb
commit
4fe3b8b22b
|
@ -20,6 +20,8 @@
|
|||
trustedUsers = [ "@wheel" ];
|
||||
};
|
||||
|
||||
boot.kernelParams = [ "highres=off" "nohz=off" ];
|
||||
|
||||
networking = {
|
||||
hostName = "tlaternet";
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
extraOptions = [ "--cpu-quota=90000" ];
|
||||
autoStart = false;
|
||||
ports = [ "25565:25565" ];
|
||||
volumes = [
|
||||
|
|
Loading…
Reference in a new issue