From 14085d09bd8b682da8c6d493cb5ba96daafa1c20 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Tue, 17 Jan 2023 11:26:50 -0800 Subject: [PATCH] Add note for compiling with multiple jobs (#948) * Fix overread in projectile behavior * Fix stuns * Correctly read in bitStream * Fix projectile behavior * Address movement type issues * Update shutdown time to be accurate * Fix small issues * Fix missing template * Add note for compile jobs --- README.md | 4 ++++ build.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 27de7d6d..df782a32 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,10 @@ You can either run `build.sh` when in the root folder of the repository: Or manually run the commands used in [build.sh](build.sh). +If you would like to build the server faster, append `-j` where number is the number of simultaneous compile jobs to run at once. It is recommended that you have this number always be 1 less than your core count to prevent slowdowns. The command would look like this if you would build with 4 jobs at once: +```bash +./build.sh -j4 +``` ### Notes Depending on your operating system, you may need to adjust some pre-processor defines in [CMakeVariables.txt](./CMakeVariables.txt) before building: * If you are on MacOS, ensure OPENSSL_ROOT_DIR is pointing to the openssl root directory. diff --git a/build.sh b/build.sh index a736a4ee..b8d33492 100755 --- a/build.sh +++ b/build.sh @@ -9,5 +9,5 @@ cd build cmake .. # To build utilizing multiple cores, append `-j` and the amount of cores to utilize, for example `cmake --build . --config Release -j8' -cmake --build . --config Release +cmake --build . --config Release $1