diff --git a/src/main/java/com/seibel/lod/proxy/ClientProxy.java b/src/main/java/com/seibel/lod/proxy/ClientProxy.java
index 660ec12e4..49f88e51b 100644
--- a/src/main/java/com/seibel/lod/proxy/ClientProxy.java
+++ b/src/main/java/com/seibel/lod/proxy/ClientProxy.java
@@ -34,7 +34,6 @@ import com.seibel.lod.objects.LodQuadTreeWorld;
import com.seibel.lod.objects.RegionPos;
import com.seibel.lod.render.LodNodeRenderer;
import com.seibel.lod.util.LodUtil;
-import com.seibel.lod.util.ObjectSizeCalculator;
import net.minecraft.client.Minecraft;
import net.minecraft.profiler.IProfiler;
@@ -119,13 +118,6 @@ public class ClientProxy
//LOGGER.info("offset: " + worldRegionOffset.x + "," + worldRegionOffset.z + "\t center: " + lodDim.getCenterX() + "," + lodDim.getCenterZ());
}
- // just here to prevent eclipse removing the imports when I save the file
- ObjectSizeCalculator.getObjectSize(null);
-
- // uncomment once the LODs have fully generated to see the memory usage
-// long size = ObjectSizeCalculator.getObjectSize(lodDim);
-// LOGGER.info(size);
-
// comment out when creating a release
applyConfigOverrides();
@@ -140,7 +132,7 @@ public class ClientProxy
profiler.pop(); // get out of "terrain"
profiler.push("LOD");
- renderer.drawLODs(lodDim, partialTicks, mc.getProfiler());
+
profiler.pop(); // end LOD
profiler.push("terrain"); // restart "terrain"
diff --git a/src/main/java/com/seibel/lod/util/ObjectSizeCalculator.java b/src/main/java/com/seibel/lod/util/ObjectSizeCalculator.java
deleted file mode 100644
index 14873fa6e..000000000
--- a/src/main/java/com/seibel/lod/util/ObjectSizeCalculator.java
+++ /dev/null
@@ -1,441 +0,0 @@
-package com.seibel.lod.util;
-
-/**
- * found on stack overflow here:
- * https://stackoverflow.com/a/29536817/14866233
- *
- * With the code found here:
- * https://github.com/twitter-archive/commons/blob/master/src/java/com/twitter/common/objectsize/ObjectSizeCalculator.java
- *
- * James Seibel - 8-13-2021
-*/
-
-//=================================================================================================
-//Copyright 2011 Twitter, Inc.
-//-------------------------------------------------------------------------------------------------
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this work except in compliance with the License.
-//You may obtain a copy of the License in the LICENSE file, or at:
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//=================================================================================================
-
-import java.lang.management.ManagementFactory;
-import java.lang.management.MemoryPoolMXBean;
-import java.lang.reflect.Array;
-import java.lang.reflect.Field;
-import java.lang.reflect.Modifier;
-import java.util.ArrayDeque;
-import java.util.Arrays;
-import java.util.Deque;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.base.Preconditions;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
-import com.google.common.collect.Sets;
-
-/**
-* Contains utility methods for calculating the memory usage of objects. It
-* only works on the HotSpot JVM, and infers the actual memory layout (32 bit
-* vs. 64 bit word size, compressed object pointers vs. uncompressed) from
-* best available indicators. It can reliably detect a 32 bit vs. 64 bit JVM.
-* It can only make an educated guess at whether compressed OOPs are used,
-* though; specifically, it knows what the JVM's default choice of OOP
-* compression would be based on HotSpot version and maximum heap sizes, but if
-* the choice is explicitly overridden with the -XX:{+|-}UseCompressedOops command line
-* switch, it can not detect
-* this fact and will report incorrect sizes, as it will presume the default JVM
-* behavior.
-*
-* @author Attila Szegedi
-*/
-public class ObjectSizeCalculator {
-
-/**
-* Describes constant memory overheads for various constructs in a JVM implementation.
-*/
-public interface MemoryLayoutSpecification {
-
- /**
- * Returns the fixed overhead of an array of any type or length in this JVM.
- *
- * @return the fixed overhead of an array.
- */
- int getArrayHeaderSize();
-
- /**
- * Returns the fixed overhead of for any {@link Object} subclass in this JVM.
- *
- * @return the fixed overhead of any object.
- */
- int getObjectHeaderSize();
-
- /**
- * Returns the quantum field size for a field owned by an object in this JVM.
- *
- * @return the quantum field size for an object.
- */
- int getObjectPadding();
-
- /**
- * Returns the fixed size of an object reference in this JVM.
- *
- * @return the size of all object references.
- */
- int getReferenceSize();
-
- /**
- * Returns the quantum field size for a field owned by one of an object's ancestor superclasses
- * in this JVM.
- *
- * @return the quantum field size for a superclass field.
- */
- int getSuperclassFieldPadding();
-}
-
-private static class CurrentLayout {
- private static final MemoryLayoutSpecification SPEC =
- getEffectiveMemoryLayoutSpecification();
-}
-
-/**
-* Given an object, returns the total allocated size, in bytes, of the object
-* and all other objects reachable from it. Attempts to to detect the current JVM memory layout,
-* but may fail with {@link UnsupportedOperationException};
-*
-* @param obj the object; can be null. Passing in a {@link java.lang.Class} object doesn't do
-* anything special, it measures the size of all objects
-* reachable through it (which will include its class loader, and by
-* extension, all other Class objects loaded by
-* the same loader, and all the parent class loaders). It doesn't provide the
-* size of the static fields in the JVM class that the Class object
-* represents.
-* @return the total allocated size of the object and all other objects it
-* retains.
-* @throws UnsupportedOperationException if the current vm memory layout cannot be detected.
-*/
-public static long getObjectSize(Object obj) throws UnsupportedOperationException {
- return obj == null ? 0 : new ObjectSizeCalculator(CurrentLayout.SPEC).calculateObjectSize(obj);
-}
-
-// Fixed object header size for arrays.
-private final int arrayHeaderSize;
-// Fixed object header size for non-array objects.
-private final int objectHeaderSize;
-// Padding for the object size - if the object size is not an exact multiple
-// of this, it is padded to the next multiple.
-private final int objectPadding;
-// Size of reference (pointer) fields.
-private final int referenceSize;
-// Padding for the fields of superclass before fields of subclasses are
-// added.
-private final int superclassFieldPadding;
-
-private final LoadingCache, ClassSizeInfo> classSizeInfos =
- CacheBuilder.newBuilder().build(new CacheLoader, ClassSizeInfo>() {
- @Override
- public ClassSizeInfo load(Class> clazz) {
- return new ClassSizeInfo(clazz);
- }
- });
-
-
-private final Set