From 0b11fe4ec4da63811bdda20ae8b5f28a713cc3f6 Mon Sep 17 00:00:00 2001 From: makamys Date: Tue, 7 Jun 2022 23:45:01 +0200 Subject: Increase GC rate --- src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/makamys') diff --git a/src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java b/src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java index ebfb334..77460e6 100644 --- a/src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java +++ b/src/main/java/makamys/lodmod/renderer/GPUMemoryManager.java @@ -35,7 +35,7 @@ public class GPUMemoryManager { int moved = 0; int checksLeft = sentMeshes.size(); - while(moved < 1 && checksLeft-- > 0 && !sentMeshes.isEmpty()) { + while(moved < 4 && checksLeft-- > 0 && !sentMeshes.isEmpty()) { nextMesh++; if(nextMesh >= sentMeshes.size()) { nextMesh = 0; -- cgit