From f821db4ceabbccd4cd97f7ac5f10bfdcc2c31c3b Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Sun, 16 Jul 2023 01:38:24 +0530 Subject: [PATCH] fix the bruh lag --- src/InstanceManager.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/InstanceManager.hx b/src/InstanceManager.hx index a293bb36..c68669ad 100644 --- a/src/InstanceManager.hx +++ b/src/InstanceManager.hx @@ -18,6 +18,7 @@ import h3d.scene.Object; import h3d.scene.Mesh; import h3d.scene.MeshBatch; import src.MarbleGame; +import src.ProfilerUI; typedef MeshBatchInfo = { var instances:Array; @@ -78,7 +79,7 @@ class InstanceManager { subOpacity = instance.gameObject.getSubObjectOpacity(instance.emptyObj); if (subOpacity == 0) continue; // Do not draw - minfo.meshbatch.shadersChanged = true; + // minfo.meshbatch.shadersChanged = true; } dtsShader.currentOpacity = instance.gameObject.currentOpacity * subOpacity;