mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
nixos/minecraft-server: optimize world generation inside test
Due to how complex minecraft world generation has gotten in recent years, it now can take several minutes to complete the first generation of a world seed, even on relatively new and powerful hardware. We are testing if a minecraft server can run inside of a nix enviroment, and not so much about stress testing the CI. Test running before this change: > (finished: waiting for TCP port 43000, in 118.49 seconds) Test running with this change: > (finished: waiting for TCP port 43000, in 27.88 seconds) Choice of using `level-type` and `generate-structures` was made as they support almost every version of minecraft. These two also make it extremely clear what it does, compared to the more complex `generator-settings` and all its toggles.
This commit is contained in:
parent
d7cef0d40f
commit
07c76c980c
@ -18,6 +18,8 @@ in import ./make-test-python.nix ({ pkgs, ... }: {
|
|||||||
serverProperties = {
|
serverProperties = {
|
||||||
enable-rcon = true;
|
enable-rcon = true;
|
||||||
level-seed = seed;
|
level-seed = seed;
|
||||||
|
level-type = "flat";
|
||||||
|
generate-structures = false;
|
||||||
online-mode = false;
|
online-mode = false;
|
||||||
"rcon.password" = rcon-pass;
|
"rcon.password" = rcon-pass;
|
||||||
"rcon.port" = rcon-port;
|
"rcon.port" = rcon-port;
|
||||||
|
Loading…
Reference in New Issue
Block a user