worldgen sliced evenly

This commit is contained in:
minjaesong
2023-10-30 17:24:00 +09:00
parent 4244a2c395
commit f199307353
4 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ class Biomegen(world: GameWorld, seed: Long, params: Any) : Gen(world, seed, par
private val threadExecutor = TerrarumIngame.worldgenThreadExecutor
private val genSlices = max(threadExecutor.threadCount, world.width / 8)
private val genSlices = max(threadExecutor.threadCount, world.width / 9)
private val YHEIGHT_MAGIC = 2800.0 / 3.0
private val YHEIGHT_DIVISOR = 2.0 / 7.0

View File

@@ -25,7 +25,7 @@ import kotlin.math.sqrt
class Oregen(world: GameWorld, private val caveAttenuateBiasScaled: ModuleScaleDomain, seed: Long, private val ores: List<OregenParams>) : Gen(world, seed) {
private val threadExecutor = TerrarumIngame.worldgenThreadExecutor
private val genSlices = max(threadExecutor.threadCount, world.width / 8)
private val genSlices = max(threadExecutor.threadCount, world.width / 9)
override fun getDone() {
threadExecutor.renew()

View File

@@ -20,7 +20,7 @@ import kotlin.math.max
class OregenAutotiling(world: GameWorld, seed: Long, val tilingModes: HashMap<ItemID, String>) : Gen(world, seed) {
private val threadExecutor = TerrarumIngame.worldgenThreadExecutor
private val genSlices = max(threadExecutor.threadCount, world.width / 8)
private val genSlices = max(threadExecutor.threadCount, world.width / 9)
override fun getDone() {
threadExecutor.renew()

View File

@@ -24,7 +24,7 @@ class Terragen(world: GameWorld, val highlandLowlandSelectCache: ModuleCache, se
private val threadExecutor = TerrarumIngame.worldgenThreadExecutor
private val genSlices = max(threadExecutor.threadCount, world.width / 8)
private val genSlices = max(threadExecutor.threadCount, world.width / 9)
private val dirtStoneDitherSize = 3 // actual dither size will be double of this value