mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-06 07:46:08 +00:00
Only compute if absent/present if compute is not needed (locking opts)
This commit is contained in:
@@ -892,7 +892,7 @@ public class IrisInterpolation {
|
||||
int fj = j;
|
||||
for (k = 0; k < d; k++) {
|
||||
int fk = k;
|
||||
hunk.set(i, j, k, cache.compute((k * w * h) + (j * w) + i, (p, v)
|
||||
hunk.set(i, j, k, cache.computeIfAbsent((k * w * h) + (j * w) + i, (p)
|
||||
-> getNoise3D(method, fi + xo, fj + yo, fk + zo,
|
||||
radX, radY, radZ, n)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user