diff options
author | makamys <makamys@outlook.com> | 2021-05-07 14:30:26 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2021-05-07 14:30:26 +0200 |
commit | 77cd6075160cd2d90f1d587fcafcc9f8803185a1 (patch) | |
tree | e260eba611da8b4944b38cc0f562412ae2437f9c /src/main/java/makamys/lodmod/renderer/LODRenderer.java | |
parent | 8d34032cdf6ba6bb85e61864545bb606afff1f9f (diff) | |
download | Neodymium-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.java | 4 |
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; |