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" ];
|
trustedUsers = [ "@wheel" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.kernelParams = [ "highres=off" "nohz=off" ];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "tlaternet";
|
hostName = "tlaternet";
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraOptions = [ "--cpu-quota=90000" ];
|
||||||
autoStart = false;
|
autoStart = false;
|
||||||
ports = [ "25565:25565" ];
|
ports = [ "25565:25565" ];
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|
Loading…
Reference in a new issue