mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Speed up profiling
This commit is contained in:
parent
233a179dad
commit
18b962dc57
@ -93,14 +93,14 @@ public class CommandIrisStudioProfile extends MortarCommand {
|
|||||||
for (NoiseStyle i : NoiseStyle.values()) {
|
for (NoiseStyle i : NoiseStyle.values()) {
|
||||||
CNG c = i.create(new RNG(i.hashCode()));
|
CNG c = i.create(new RNG(i.hashCode()));
|
||||||
|
|
||||||
for (int j = 0; j < 30000; j++) {
|
for (int j = 0; j < 3000; j++) {
|
||||||
c.noise(j, j + 1000, j * j);
|
c.noise(j, j + 1000, j * j);
|
||||||
c.noise(j, -j);
|
c.noise(j, -j);
|
||||||
}
|
}
|
||||||
|
|
||||||
PrecisionStopwatch px = PrecisionStopwatch.start();
|
PrecisionStopwatch px = PrecisionStopwatch.start();
|
||||||
|
|
||||||
for (int j = 0; j < 1000000; j++) {
|
for (int j = 0; j < 100000; j++) {
|
||||||
c.noise(j, j + 1000, j * j);
|
c.noise(j, j + 1000, j * j);
|
||||||
c.noise(j, -j);
|
c.noise(j, -j);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user