mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
new thread pooling strategy and test program WIP
This commit is contained in:
@@ -76,8 +76,8 @@ object WorldSimulator {
|
||||
fun moveFluids(delta: Float) {
|
||||
makeFluidMapFromWorld()
|
||||
|
||||
//simCompression()
|
||||
for (y in 1 until fluidMap.size - 1) {
|
||||
simCompression()
|
||||
/*for (y in 1 until fluidMap.size - 1) {
|
||||
for (x in 1 until fluidMap[0].size - 1) {
|
||||
val worldX = x + updateXFrom
|
||||
val worldY = y + updateYFrom
|
||||
@@ -98,7 +98,7 @@ object WorldSimulator {
|
||||
fluidNewMap[y + 1][x] += remainingMass
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
fluidmapToWorld()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user