aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2023-12-02 17:59:55 +0100
committermakamys <makamys@outlook.com>2023-12-03 00:38:41 +0100
commit1fb7166ab4ad724368b67f8fed81c2e2fb2a66f9 (patch)
tree78b9611b9931a5d68ef6661799ebf9924152721e
parentd55ebcaf1ae6545650d925c4d6c95f8b67e8695d (diff)
downloadNeodymium-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.java2
-rw-r--r--src/main/java/makamys/neodymium/renderer/NeoRenderer.java9
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);