aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/lodmod/renderer/LODRenderer.java
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2021-05-07 14:30:26 +0200
committermakamys <makamys@outlook.com>2021-05-07 14:30:26 +0200
commit77cd6075160cd2d90f1d587fcafcc9f8803185a1 (patch)
treee260eba611da8b4944b38cc0f562412ae2437f9c /src/main/java/makamys/lodmod/renderer/LODRenderer.java
parent8d34032cdf6ba6bb85e61864545bb606afff1f9f (diff)
downloadNeodymium-77cd6075160cd2d90f1d587fcafcc9f8803185a1.tar.gz
Neodymium-77cd6075160cd2d90f1d587fcafcc9f8803185a1.tar.bz2
Neodymium-77cd6075160cd2d90f1d587fcafcc9f8803185a1.zip
Add VRAM meter to F3 overlay
Diffstat (limited to 'src/main/java/makamys/lodmod/renderer/LODRenderer.java')
-rw-r--r--src/main/java/makamys/lodmod/renderer/LODRenderer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODRenderer.java b/src/main/java/makamys/lodmod/renderer/LODRenderer.java
index b8121ed..2295848 100644
--- a/src/main/java/makamys/lodmod/renderer/LODRenderer.java
+++ b/src/main/java/makamys/lodmod/renderer/LODRenderer.java
@@ -492,6 +492,10 @@ public class LODRenderer {
return null;
}
+ public String getDebugText() {
+ return "VRAM: " + (nextMeshOffset / 1024 / 1024) + "MB / " + (BUFFER_SIZE / 1024 / 1024) + "MB";
+ }
+
public static class LODChunkComparator implements Comparator<LODChunk> {
Entity player;