implementing working multithreading Terragen to the game

This commit is contained in:
minjaesong
2020-04-29 11:26:59 +09:00
parent 226c8342cb
commit 961e375234
3 changed files with 6 additions and 5 deletions

View File

@@ -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