mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix the bruh lag
This commit is contained in:
parent
6bea557aec
commit
f821db4cea
1 changed files with 2 additions and 1 deletions
|
|
@ -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<MeshInstance>;
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue