- if (totalCountLast != 0) {
- return String.format("[BBOR] Rendering culling: %d / %d (%.1f%%)", culledCountLast, totalCountLast, (culledCountLast / (float) totalCountLast) * 100.0);
- } else {
- return "[BBOR] Rendering not enabled";
+ }
+
+ public static List<String> debugStrings() {
+ if (!ClientRenderer.getActive()) return List.of("[BBOR] Rendering not enabled");
+ final ArrayList<String> list = new ArrayList<>(2);
+ if (ConfigManager.fastRender.get() >= 2) {
+ final int preCulledCountLast;
+ final int preTotalCountLast;
+ synchronized (mutex) {
+ preCulledCountLast = RenderCulling.preCulledCountLast.get();
+ preTotalCountLast = RenderCulling.preTotalCountLast.get();
+ }
+ list.add(String.format("[BBOR] Pre-culling: %d / %d (%.1f%%)", preCulledCountLast, preTotalCountLast, (preCulledCountLast / (float) preTotalCountLast) * 100.0));