mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-08 00:36:19 +00:00
Performance Improvements
This commit is contained in:
@@ -71,10 +71,10 @@ public class IrisObject extends IrisRegistrant {
|
||||
private transient BlockVector center;
|
||||
private transient volatile boolean smartBored = false;
|
||||
private transient IrisLock lock = new IrisLock("Preloadcache");
|
||||
private transient AtomicCache<AxisAlignedBB> aabb;
|
||||
private transient AtomicCache<AxisAlignedBB> aabb = new AtomicCache<>();
|
||||
|
||||
public AxisAlignedBB getAABB() {
|
||||
return getAABBFor(new BlockVector(w, h, d));
|
||||
return aabb.aquire(() -> getAABBFor(new BlockVector(w, h, d)));
|
||||
}
|
||||
|
||||
public static BlockVector getCenterForSize(BlockVector size) {
|
||||
|
||||
Reference in New Issue
Block a user