Wiki 9Minecraft BetterFps Mod Wiki
BetterFps Mod Wiki › Reference

BetterFps Mod — Reference

Core Mechanics: Math Algorithms

The primary feature of BetterFps is the ability to change the algorithm Minecraft uses for sin and cos functions. The default Java Math algorithm is precise but can be slow on certain hardware. BetterFps offers several alternatives that trade a negligible amount of precision for significant speed gains.

Available Algorithms

Algorithm Description Performance Impact
Riven's Full A highly optimized lookup-table based algorithm. Generally the fastest for most modern CPUs.
Riven's Half A variation of Riven's that uses half the memory for the lookup table. Excellent balance of speed and memory usage.
LibGDX Based on the LibGDX framework's math implementation. Very similar to Riven's; highly efficient.
Taylor's Uses Taylor series expansion for calculations. Can be slower than Vanilla on some hardware; use with caution.
Java Math The default Java implementation. High precision, but often the slowest option.
Random Math A non-deterministic algorithm used for testing. Not recommended for standard gameplay.
Vanilla Math Minecraft's original implementation. Standard performance.

Algorithm Benchmarking

BetterFps includes a built-in benchmarking tool to help users find the best algorithm for their specific CPU. To use it, users can run the mod's .jar file directly outside of Minecraft. This opens a window that tests each algorithm and displays the time taken in milliseconds.

BetterFps algorithm benchmarking tool interface