VectorX
by etil2jz
VectorX rewrites a small set of Minecraft's hottest array loops to use the Java Vector API, with a scalar fallback for each one.
What it does
Four independent kernels replace parts of the density array clamp, the per-element transform loop and related hot paths. Each kernel can be toggled on its own. The Vector API is an incubating JDK module that the JVM does not expose unless it is asked for, so the server must start with an added JVM argument in its launcher profile or start script. Without that flag the mod still loads and runs everything on the scalar backend, which gives no speedup.
Every vectorized kernel ships with a scalar twin. A per-call hook intercepts any failure and returns control to Mojang's own method, so a single failed call leaves the result unchanged. A startup correctness check disables the Vector API module on an unexpected CPU or on a conflicting mod, and vanilla behaviour is preserved in those cases. Startup logs report how many of the four kernels are active, for example 0/4 when the flag is missing.
Fzzy Config is required. The mod is published for Fabric only, with builds for 26.2 and 26.3, and the latest file is 0.2.0 for 26.3 on the beta channel. It runs on the server only, so players join without installing it. The source code is open source under the GNU Lesser General Public License v3.0 only.
Key features
Vectorized hot paths
Specific Minecraft loops run on the CPU's vector units, processing four, eight or sixteen values in one instruction where the hardware allows.
Backend selection
The vector width comes from the CPU and the JDK, with AVX2, AVX-512 and NEON all supported when the JDK provides them.
Toggleable kernels
Each of the four kernels can be switched off in the config, and diagnostics show which width the server selected.
Measured gains
On a dedicated server with 1024 force-loaded chunks, chunk generation ran about 33% faster and used about 25% less CPU time, with identical world output.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Dedicated servers
Server owners who generate many chunks can add the JVM argument and reduce CPU time spent on terrain generation.
Who it’s for: Server owners who run Fabric on hardware with recent vector instructions and want less CPU time in chunk generation. Older CPUs with only SSE or AVX2 support, or JDKs that select a narrower width, see proportionally smaller gains.
Questions
Does VectorX need a restart after configuration changes?
Why does the startup log show 0/4?
Does VectorX change world generation output?
In the catalog
VectorX is one of 3,545 Optimization mods on ModsFinder, and one of 2,575 Optimization mods for Fabric. 8,071 mods support Minecraft 26.3.
Similar mods
What the author says
VectorX rewrites a small, carefully chosen set of Minecraft's hottest array loops using the Java Vector API (jdk.incubator.vector), so a single CPU instruction processes 4, 8 or 16 values at once instead of one thanks to AVX2, AVX-512 or NEON, whichever your CPU and JDK actually provide. Unlike most SIMD experiments…
Official listing
- Modrinth page
- modrinth.com/mod/vectorx
- Owner
- etil2jz
- Published
- 2026-08-04
- Updated on Modrinth
- 2026-09-18
- Facts verified
- 2026-10-15
