Better `rsqrt`
Replaces the constants Minecraft uses for their functions for calculating the reciprocal square root (aka rsqrt) with more accurate alternatives
About this Mod
Better rsqrt
N.B.: The accuracy benefits of this is negligible at best, so don't expect anything big to happen. This is created
purely because I want to, and I can.
Tested to work every version since 1.14 (v1.0.1)
Replaces the constant Minecraft uses in their fast reciprocal square root
(also known as InvSqrt or rsqrt) functions, to yield better accuracy:
| Function | Original Value | More Accurate™ Value |
|---|---|---|
fastInverseSqrt(float) |
0x5f3759df |
0x5f375a86 |
fastInverseSqrt(double) |
0x5fe6eb50c7b537aa |
0x5fe6eb50c7b537a9 |
Since Minecraft only use these functions in rendering, this "fix" should not affect world generation or other functions
that rely on the vanilla result to yield expected results.
References
Both accessed on June 13th, 2021:
Available Versions
How to Install Better `rsqrt` on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.17).
Install Mod
Open the mod browser in the dashboard and search for "Better `rsqrt`". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.17, 1.17-rc2, 1.17-rc1 (+163 more)
Server-side
~ OptionalRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Better `rsqrt` server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.17). You can switch loaders with one click in the panel.
Is Better `rsqrt` compatible with fabric?
Better `rsqrt` officially supports fabric for Minecraft 1.17, 1.17-rc2, 1.17-rc1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Better `rsqrt` – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Better `rsqrt` consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Better `rsqrt` with just one click on your server.