Faster Random

Faster Random

Mod

An up to 100X* faster Random Generator implementation for Minecraft, with near vanilla parity.

Client or server MagicOptimizationUtility

128.5k downloads
239 followers
Createda year ago
Updateda month ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

Faster Random

This mod rewrites Minecraft's RNG system with a much faster alternative, making random operations up to 100X* faster, and makes parts of minecraft load faster in some cases.

* In the worst-case-scenario with CheckedRandom. Realistically performance is 4-8x faster.

Should you use this mod?

It's likely that Faster Random will only improve worldgen performance up to a certain extent, as you'll quickly hit RAM and I/O limits from the increased amount of chunks stored in RAM/being written to disk. This isn't a bad thing, this just means that you're generating chunks faster than the rest of your system can store them. Depending on your system, your mileage may vary greatly.

Other "random" parts of the game may also have potential performance increases reduced due to bottlenecks.

As a result, this mod provides the most performance in situations where the server thread(s) are CPU bottlenecked (singleplayer runs on an internal server), but have access to a decent amount of fast memory and storage (DDR4 RAM, and a SATA III or better SSD).

For world generation, Faster Random is almost 1:1, but some cave shapes will generate differently to Vanilla. Everything else is 1:1. It's likely that these differences will be unnoticiable, but shouldn't be used for parity-sensitive things like speedrunning.

Faster Random does not need to be on both the client and server. Faster Random can provide a small performance boost client-side, as quite a few things are still random there.

System Requirements (3.0.0+)

(Note: You may be unknowingly using a headless JDK for Minecraft, which breaks Faster Random due to a variety of strange reasons. Please check if you have downloaded the correct JDK/Package if Faster Random is crashing.)

Usage with other mods

Faster Random should work well with a large variety of mods, especially after 4.0.0.

Faster Random also can perform better alongside other terrain optimization mods such as Noisium and C2ME, thanks to them making better leverage of Minecraft's random systems with multithreading. Ideally, you should use Noisium + Faster Random, and throw as much ram (10GB+) as you can spare at Minecraft when using Distant Horizons (C2ME has a performance hit with DH).

Forge?

Francium is an unofficial forge variant for 1.16 and 1.18, which mostly does what Faster Random does, albeit without the worldgen optimizations. For 1.20.1 and these worldgen changes, Sinytra Connector should be able to run the mod with a "stable enough" experience. For 1.20.1+, you can try using the NeoForge port.

Faster Random's Icon is licensed under CC-BY-SA. Code is licensed under Apache 2.0.

Like this mod? Feel free to support development by contributing code, creating bug reports, and letting others know about it!


Project members

AnOpenSauceDev

Owner

Steveplays

Member


Technical information

License
Apache-2.0
Client side
optional
Server side
optional
Project ID