Modrinth · Minecraft mod
Better `rsqrt`
Replaces the constants Minecraft uses for their functions for calculating the reciprocal square root (aka rsqrt) with more accurate alternatives
Quick answer
Which Better `rsqrt` release matches 18w44a?
Better `rsqrt` v1.0.1 targets 18w43a, 18w43b, 18w43c with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is Better `rsqrt` required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does Better `rsqrt` v1.0.1 need?
v1.0.1 on 18w44a. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Better `rsqrt` without breaking your instance.
Built for Better `rsqrt` v1.0.1 on 18w44a. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use v1.0.1. It targets 18w43a, 18w43b, 18w43c with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside v1.0.1. It opens that exact file at the source.
About this project
What does Better `rsqrt` add?
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:
Project description from Modrinth.
Pick your setup
Better `rsqrt` by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
21w19a
1 loader build21w18a
1 loader build21w17a
1 loader build21w16a
1 loader build21w15a
1 loader build21w14a
1 loader build21w13a
1 loader build21w11a
1 loader build21w10a
1 loader build21w08b
1 loader build21w08a
1 loader buildShowing the newest 12 of 166 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Better `rsqrt` versions and loaders
v1.0.1
better-rsqrt-1.0.1.jar
13 Jun 2021
Looking for an older file? The official Modrinth project page is in Resources.