Better `rsqrt`

Better `rsqrt`

Replaces the constants Minecraft uses for their functions for calculating the reciprocal square root (aka rsqrt) with more accurate alternatives

by
470 Downloads
fabricutility
Rent Server with this Mod

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

v1.0.1release
MC 18w43a, 18w43b, 18w43c, 18w44a, 18w45a, 18w46a, 18w47a, 18w47b, 18w48a, 18w48b, 18w49a, 18w50a, 19w02a, 19w03a, 19w03b, 19w03c, 19w04a, 19w04b, 19w05a, 19w06a, 19w07a, 19w08a, 19w08b, 19w09a, 19w11a, 19w11b, 19w12a, 19w12b, 19w13a, 19w13b, 19w14a, 19w14b, 1.14-pre1, 1.14-pre2, 1.14-pre3, 1.14-pre4, 1.14-pre5, 1.14, 1.14.1-pre1, 1.14.1-pre2, 1.14.1, 1.14.2-pre1, 1.14.2-pre2, 1.14.2-pre3, 1.14.2-pre4, 1.14.2, 1.14.3-pre1, 1.14.3-pre2, 1.14.3-pre3, 1.14.3-pre4, 1.14.3, 1.14.4-pre1, 1.14.4-pre2, 1.14.4-pre3, 1.14.4-pre4, 1.14.4-pre5, 1.14.4-pre6, 1.14.4-pre7, 1.14.4, 19w34a, 19w35a, 19w36a, 19w37a, 19w38a, 19w38b, 19w39a, 19w40a, 19w41a, 19w42a, 19w44a, 19w45a, 19w45b, 19w46a, 19w46b, 1.15-pre1, 1.15-pre2, 1.15-pre3, 1.15-pre4, 1.15-pre5, 1.15-pre6, 1.15-pre7, 1.15, 1.15.1-pre1, 1.15.1, 1.15.2-pre1, 1.15.2-pre2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13a, 20w13b, 20w14infinite, 20w14a, 20w15a, 20w16a, 20w17a, 20w18a, 20w19a, 20w20a, 20w20b, 20w21a, 20w22a, 1.16-pre1, 1.16-pre2, 1.16-pre3, 1.16-pre4, 1.16-pre5, 1.16-pre6, 1.16-pre7, 1.16-pre8, 1.16-rc1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2-pre1, 1.16.2-pre2, 1.16.2-pre3, 1.16.2-rc1, 1.16.2-rc2, 1.16.2, 1.16.3-rc1, 1.16.3, 1.16.4-pre1, 1.16.4-pre2, 1.16.4-rc1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 1.16.5-rc1, 1.16.5, 21w03a, 21w05a, 21w05b, 21w06a, 21w07a, 21w08a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 21w19a, 21w20a, 1.17-pre1, 1.17-pre2, 1.17-pre3, 1.17-pre4, 1.17-pre5, 1.17-rc1, 1.17-rc2, 1.17fabric
June 13, 2021

How to Install Better `rsqrt` on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.17).

3

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

fabric

Minecraft Versions

1.17, 1.17-rc2, 1.17-rc1 (+163 more)

Server-side

~ Optional

Recommended 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.

Rent Modded Server

Install Better `rsqrt` with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Creative Commons Zero v1.0 Universal
Server-side
Optional

Supported Versions

1.171.17-rc21.17-rc11.17-pre51.17-pre41.17-pre31.17-pre21.17-pre121w20a21w19a+156 more