mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 06:11:06 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -469,4 +469,18 @@ public class CNG {
|
|||||||
public boolean isStatic() {
|
public boolean isStatic() {
|
||||||
return generator != null && generator.isStatic();
|
return generator != null && generator.isStatic();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] a)
|
||||||
|
{
|
||||||
|
CNG cng = NoiseStyle.SIMPLEX.create(new RNG(1234));
|
||||||
|
PrecisionStopwatch p = PrecisionStopwatch.start();
|
||||||
|
double r = 0;
|
||||||
|
|
||||||
|
for(int i = 0; i < 30000000 * 10; i++)
|
||||||
|
{
|
||||||
|
r += cng.fit(-1000, 1000, i, i);
|
||||||
|
}
|
||||||
|
|
||||||
|
System.out.println(Form.duration(p.getMilliseconds(), 10) + " merged = " + r);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user