Skip to content

JustHari01/HariMultiThread

Repository files navigation

Async 1.20.1 - Minecraft Entity Multi-Threading Mod ⚙️

Discord GitHub Issues

Async is a Fabric mod designed to improve entity performance by processing them in parallel using multiple CPU cores and threads.

Important❗

Async is currently in alpha testing and is experimental. Its use may lead to incorrect entity behavior and crashes. It may be even more unstable on 1.20.1!

💡 Key Benefits:

  • Improved TPS: Maintains stable tick times even with a large number of entities.
  • 🚀 Multithreading: Utilizes multiple CPU cores for parallel entity processing.
  • 🎲 Async Random Ticks (Experimental): Processes random ticks asynchronously for better performance.

📊 Performance Comparison (9000 Villagers) (Not From 1.20.1)

Configuration TPS MSPT
Lithium + Async 20 41.8
Lithium (without Async) 4.4 225.4
Purpur 5.72 176.18

🛠️ Test Configuration

  • Processor: AMD Ryzen 9 7950X3D
  • RAM: 64 GB (16 GB allocated to the server)
  • Minecraft Version: 1.21.4
  • Number of Entities: 9000
  • Entity Type: Villagers
Mod List Concurrent Chunk Management Engine, Fabric API, FerriteCore, Lithium, ScalableLux, ServerCore, StackDeobfuscator, TT20 (TPS Fixer), Tectonic, Very Many Players, Fabric Carpet.

⚠️ Incompatible Mods (1.20.1)

  • ⚠️ If you find an incompatible mod for 1.20.1 report it to ME not AxolotL.

If you encounter issues with other mods, please report them on my GitHub.

🔧 Commands

  • /async config toggle — Enables or disables the mod in-game (no server restart required). Use this command to instantly see how Async improves your server.
  • /async config setAsyncEntitySpawn — Enables or disables parallel mob spawn processing (disabled by default). Warning: Not compatible with Carpet mod lagFreeSpawning rule.
  • /async config setAsyncRandomTicks — Enables or disables async random ticks processing (experimental feature).
  • /async config synchronizedEntities add — Adds selected entity to synchronized processing.
  • /async config synchronizedEntities remove — Removes selected entity from synchronized processing.
  • /async stats — Displays the number of threads in use.
  • /async stats entity — Shows the number of entities processed by Async in various worlds.
  • /async stats entity [number] — Shows the top [number] entity types by count in descending order. For example, /async stats entity 10 displays the top 10 most numerous entity types.

📥 Download

The mod is available here at Releases

🔄 Minecraft Version Support

Full support is provided for 1.20.1 sometimes :P

📭 Feedback

Use original Async's tracker for FEEDBACK ONLY (if your coming from 1.20.1) available on GitHub. Changes made there might slowly drizzle down to this fork: Give feedback on GitHub

You can also chat with me on their Discord: Chat with us on Discord

🙌 Acknowledgements

This mod is based on code from MCMTFabric, which in turn was based on JMT-MCMT. Huge thanks to Grider and jediminer543 for their invaluable contributions!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages