aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2021-05-09 07:44:58 +0200
committermakamys <makamys@outlook.com>2021-05-09 07:44:58 +0200
commitecec76b081029e706390b74f06198250da43905d (patch)
treeb04356df29b9848b909f95f1d51874fb895ac3b3 /src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
parentfcd6b68d60f4a3fa50991e75d101497aeca3aa4f (diff)
downloadNeodymium-ecec76b081029e706390b74f06198250da43905d.tar.gz
Neodymium-ecec76b081029e706390b74f06198250da43905d.tar.bz2
Neodymium-ecec76b081029e706390b74f06198250da43905d.zip
Improve memory tracking
Diffstat (limited to 'src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java')
-rw-r--r--src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java b/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
index 01291d5..581ee4a 100644
--- a/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
+++ b/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
@@ -180,4 +180,9 @@ public class SimpleChunkMesh extends Mesh {
return (3 * 4 + 8 + 4 + 4);
}
+ public void destroy() {
+ usedRAM -= buffer.limit();
+ instances--;
+ }
+
}