diff options
author | makamys <makamys@outlook.com> | 2023-12-02 17:59:55 +0100 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2023-12-03 00:38:41 +0100 |
commit | 1fb7166ab4ad724368b67f8fed81c2e2fb2a66f9 (patch) | |
tree | 78b9611b9931a5d68ef6661799ebf9924152721e | |
parent | d55ebcaf1ae6545650d925c4d6c95f8b67e8695d (diff) | |
download | Neodymium-1fb7166ab4ad724368b67f8fed81c2e2fb2a66f9.tar.gz Neodymium-1fb7166ab4ad724368b67f8fed81c2e2fb2a66f9.tar.bz2 Neodymium-1fb7166ab4ad724368b67f8fed81c2e2fb2a66f9.zip |
Remove Mesh#update since it's unused
-rw-r--r-- | src/main/java/makamys/neodymium/renderer/Mesh.java | 2 | ||||
-rw-r--r-- | src/main/java/makamys/neodymium/renderer/NeoRenderer.java | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/Mesh.java b/src/main/java/makamys/neodymium/renderer/Mesh.java index fbf425d..6c70523 100644 --- a/src/main/java/makamys/neodymium/renderer/Mesh.java +++ b/src/main/java/makamys/neodymium/renderer/Mesh.java @@ -34,8 +34,6 @@ public abstract class Mesh { public void prepareBuffer() {} public void destroyBuffer() {} - public void update() {} - public static enum GPUStatus { UNSENT, SENT, PENDING_DELETE } diff --git a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java index 3ded5da..3c5dfd6 100644 --- a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java +++ b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java @@ -148,7 +148,6 @@ public class NeoRenderer { sort(frameCount % 100 == 0, frameCount % Config.sortFrequency == 0); - updateMeshes(); initIndexBuffers(); } @@ -192,14 +191,6 @@ public class NeoRenderer { } } - private void updateMeshes() { - for(List<Mesh> list : sentMeshes) { - for(Mesh mesh : list) { - mesh.update(); - } - } - } - private void initIndexBuffers() { for(int i = 0; i < 2; i++) { piFirst[i].limit(MAX_MESHES); |