mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 21:44:05 +09:00
implementing working multithreading Terragen to the game
This commit is contained in:
@@ -91,7 +91,7 @@ class WorldgenNoiseSandbox : ApplicationAdapter() {
|
||||
renderNoise()
|
||||
}
|
||||
|
||||
val coroutineExecFinished = (coroutineJobs.fold(true) { acc, it -> acc and it.isCompleted })
|
||||
val coroutineExecFinished = coroutineJobs.fold(true) { acc, it -> acc and it.isCompleted }
|
||||
// check if generation is done
|
||||
if (coroutineExecFinished) {
|
||||
generateKeyLatched = false
|
||||
|
||||
Reference in New Issue
Block a user