Team-RTG / Realistic-Terrain-Generation

The Realistic Terrain Generation mod for Minecraft.
GNU General Public License v3.0
245 stars 118 forks source link

Math.pow in OpenSimplexNoise makes it 7x as slow #1341

Closed KdotJPG closed 4 years ago

KdotJPG commented 4 years ago
Affected Mod Versions:

1.12.2-dev

Issue Description:

Math.pow(attn, 4) in OpenSimplexNoise causes it to be about 7x as slow as attn *= attn; ... attn * attn ...

image image

Creating a pull request to revert to attn *= attn; ... attn * attn ... as it was in previous versions and in the original DigitalShadow version.