Back to mods
Better `rsqrt` project artwork

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Better `rsqrt` release matches 18w44a?

Updated 5 years ago
Best match for your filters v1.0.1
Game version 18w43a, 18w43b, 18w43c
Loader Fabric

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.

Client Optional
Dedicated server Optional
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

No extra mods listed for this file

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.

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

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

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

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

166 available setups

Showing 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

1 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.