diff --git a/README.md b/README.md index dc9e5d93669..f3dcaea4023 100644 --- a/README.md +++ b/README.md @@ -1570,6 +1570,14 @@ To enable the JVM flags required to fully support the [Flare profiling suite](ht Flare is built-in to Airplane/Pufferfish/Purpur, and is available in [plugin form](https://github.com/TECHNOVE/FlarePlugin) for other server types. +### Enable support for optimized SIMD operations + +To enable support for optimized SIMD operations, the JVM flag can be set with the following variable: + + -e USE_SIMD_FLAGS=true + +SIMD optimized operations are supported by Pufferfish and Purpur. + ### Enable timestamps in init logs Before the container starts the Minecraft Server its output is prefixed with `[init]`, such as diff --git a/scripts/start-finalExec b/scripts/start-finalExec index e354b468299..1f5c7e3bf00 100755 --- a/scripts/start-finalExec +++ b/scripts/start-finalExec @@ -186,6 +186,12 @@ if isTrue "${USE_FLARE_FLAGS}"; then " fi +if isTrue "${USE_SIMD_FLAGS}"; then + JVM_XX_OPTS="${JVM_XX_OPTS} + --add-modules=jdk.incubator.vector + " +fi + if isTrue "${DEBUG_MEMORY}"; then log "Memory usage and availability (in MB)" uname -a