This commit is contained in:
mcrcortex
2025-06-16 12:21:37 +10:00
parent 1c30198347
commit ee6d171ef6

View File

@@ -179,6 +179,7 @@ public class AsyncNodeManager {
private void run() { private void run() {
if (this.workCounter.get() <= 0) { if (this.workCounter.get() <= 0) {
//TODO: here, instead of parking, we can do more work on other sub-tasks such as filtering the mesh build queue
LockSupport.park(); LockSupport.park();
if (this.workCounter.get() <= 0 || !this.running) {//No work if (this.workCounter.get() <= 0 || !this.running) {//No work
return; return;