Enabled JOML's options by default

Gives really great performance boost on matrix operations and etc.
This commit is contained in:
Asek3 committed 2023-02-26 23:07:44 +02:00
1 parent 65d3ddaca3
commit 9e96a148a6
1 file changed
+6 -4
+6 -4
View File
@@ -53,13 +53,15 @@ public final class Options {
/**
* Whether fast approximations of some java.lang.Math operations should be used.
*/
public static final boolean FASTMATH = hasOption(System.getProperty("joml.fastmath", "false"));
//public static final boolean FASTMATH = hasOption(System.getProperty("joml.fastmath", "false"));
public static final boolean FASTMATH = true;
/**
* When {@link #FASTMATH} is <code>true</code>, whether to use a lookup table for sin/cos.
*/
public static final boolean SIN_LOOKUP = hasOption(System.getProperty("joml.sinLookup", "false"));
//public static final boolean SIN_LOOKUP = hasOption(System.getProperty("joml.sinLookup", "false"));
public static final boolean SIN_LOOKUP = true;
/**
* When {@link #SIN_LOOKUP} is <code>true</code>, this determines the table size.
*/