From 944e1c3c7f3ecbcdcd6d5fde42fe61e4ab3af572 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Wed, 24 Sep 2025 13:09:21 +1000 Subject: [PATCH] tweek --- .../me/cortex/voxy/client/core/rendering/util/HiZBuffer2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/voxy/client/core/rendering/util/HiZBuffer2.java b/src/main/java/me/cortex/voxy/client/core/rendering/util/HiZBuffer2.java index 8c9a041c..74a062ea 100644 --- a/src/main/java/me/cortex/voxy/client/core/rendering/util/HiZBuffer2.java +++ b/src/main/java/me/cortex/voxy/client/core/rendering/util/HiZBuffer2.java @@ -45,7 +45,7 @@ public class HiZBuffer2 { } private void alloc(int width, int height) { - this.levels = (int)Math.ceil(Math.log(Math.max(width, height))/Math.log(2)); + this.levels = Math.min(7,(int)Math.ceil(Math.log(Math.max(width, height))/Math.log(2))); //We dont care about e.g. 1x1 size texture since you dont get meshlets that big to cover such a large area //this.levels -= 1;//Arbitrary size, shinks the max level by alot and saves a significant amount of processing time // (could probably increase it to be defined by a max meshlet coverage computation thing)