From 77cd6075160cd2d90f1d587fcafcc9f8803185a1 Mon Sep 17 00:00:00 2001 From: makamys Date: Fri, 7 May 2021 14:30:26 +0200 Subject: Add VRAM meter to F3 overlay --- src/main/java/makamys/lodmod/renderer/LODRenderer.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/makamys/lodmod/renderer/LODRenderer.java') 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 { Entity player; -- cgit