Simulated Magnet Particle Optimization
A dedicated-server performance addon for Create Simulated 1.3.0 that reduces repeated allocation and map-iteration work in Redstone Magnet particle-field calculations.
The problem
Redstone Magnets calculate visual field lines on the server. With many magnets, these calculations can occupy a substantial part of the server's tick work, alongside the actual magnetic mechanism simulation.
Why it happens
The original particle-field evaluation repeatedly walks a map of field entries and constructs intermediate vectors while sampling the field. This work repeats throughout the particle integrator.
Scope of the optimization
- Cache an ordered array of live map entries, invalidating it when the map changes.
- Evaluate the same ordered arithmetic and JOML operations with scalar locals.
- Keep mutable entry values and vector changes visible to later samples.
- Retain native fallback for unsupported maps and maps above the cache limit.
The original particle rate, lifetime, network messages and RK4 integration are preserved. Magnetic forces, pair searches, mechanism speed, redstone signals, world coordinates and saved data retain their existing behavior. No particle throttling, content removal or balance changes are included.
Compatibility
- Minecraft 1.21.1, Java 21
- NeoForge 21.1.235 exactly
- Create Simulated 1.3.0 exactly, including the copy bundled in Create Aeronautics 1.3.0
- The original mods and their normal dependencies, installed separately
- Dedicated server only; clients do not need this addon
The exact checked pack uses Create 6.0.10 and Sable 2.0.3. Other loader builds, Simulated versions and integrated singleplayer servers are outside this release's declared scope.
The addon checks the original target class bytes during Mixin loading and again during dedicated-server startup. An unsupported target is rejected with a compatibility error. Compatibility with other patches to the same magnet particle implementation requires a separate check.
Install the JAR on the dedicated server and restart it. Keep one copy of mod ID steamsteel_magnet_particles; remove the internal Steam & Steel 1.0.0 build before adding this public Beta. Exclude this server-only file from any server-to-client mod distribution. SteamSteelCore and Companion are not required.
From Steam & Steel
The optimization was developed after profiling Redstone Magnet work on Steam & Steel SMP, our custom Minecraft 1.21.1 NeoForge server modpack. The standalone addon is available independently of the full pack. Its offline verification and live server acceptance are separate stages.
Acknowledgements
Create Simulated and Create Aeronautics are by the Simulated Team / Creators of Aeronautics. The original field formula and behavior are retained; the upstream MIT code notice is included with the addon. Create, Sable and the original projects retain their own licenses and artwork rights.
This is an independent community addon. No upstream mod JARs, classes, libraries or artwork are bundled.
Beta / Feedback
This is a beta release. The public JAR passed actual Sponge Mixin application on two server targets and exclusion of both targets on the client. Fresh checks passed 40,393 bit-exact native field/RK4 assertions and 223 physical-method and structure assertions, including mutation handling, exceptional values, native fallback and rejection of modified target bytes.
An offline field-kernel benchmark was also measured. These checks do not establish live TPS improvement, loaded-world mechanism behavior or gameplay acceptance. Those stages remain unverified, and the effect depends on the server's actual workload.
Please report bugs or compatibility problems in the project comments. Include Minecraft, NeoForge, Create, Simulated/Aeronautics, Sable and addon versions, relevant compatibility errors, and steps to reproduce the problem.
License
Own addon code and original project artwork use BSD 3-Clause. Copyright (c) 2026, DanielBasov (Steam & Steel). Retain the full license, author attribution, conditions and disclaimer when redistributing source or binaries. Forks must not imply endorsement by the original author. The separate Simulated MIT notice is preserved in the JAR and source archive.
The project icon is original matte pixel artwork rendered through our V3 pipeline. No upstream models or textures are included.