Skip to content

Commit 67b0ce3

Browse files
committed
refactor: move occluders into instance
1 parent 7f23b3b commit 67b0ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/runejs/client/scene/Scene.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ public class Scene {
3737

3838
public static boolean lowMemory = true;
3939
public static int cycle;
40-
public static int activeOccluderCount = 0;
4140
public static InteractiveObject[] interactiveObjects = new InteractiveObject[100];
42-
public static SceneCluster[] processedCullingClusters = new SceneCluster[500];
4341
public static LinkedList tileList = new LinkedList();
4442
public static int anInt109 = 0;
4543

@@ -91,7 +89,9 @@ public class Scene {
9189
public int mapSizeY = 104;
9290
public int mapSizeZ = 4;
9391

92+
private int activeOccluderCount = 0;
9493
private SceneCluster[][] cullingClusters = new SceneCluster[mapSizeZ][500];
94+
private SceneCluster[] processedCullingClusters = new SceneCluster[500];
9595
private int[] cullingClusterPointer = new int[mapSizeZ];
9696
private boolean[][] currentTileVisibilityMap;
9797
private int currentCameraY;

0 commit comments

Comments
 (0)