commiting minor changes cause I need to track down some bugs

- Text on small font goes dark gradually (?)
This commit is contained in:
minjaesong
2018-11-20 04:10:13 +09:00
parent 4d0c772dd8
commit f21ed3bf0d
6 changed files with 205 additions and 23 deletions

View File

@@ -671,12 +671,11 @@ open class Ingame(batch: SpriteBatch) : IngameInstance(batch) {
// set up indices
for (i in 0..Terrarum.THREADS - 1) {
ThreadParallel.map(
i,
i, "ActorUpdate",
ThreadActorUpdate(
actors.div(Terrarum.THREADS).times(i).roundInt(),
actors.div(Terrarum.THREADS).times(i.plus(1)).roundInt() - 1
),
"ActorUpdate"
actors.div(Terrarum.THREADS).times(i + 1).roundInt() - 1
)
)
}

View File

@@ -781,13 +781,12 @@ object WorldGenerator {
// set up indices
for (i in 0 until Terrarum.THREADS) {
ThreadParallel.map(
i,
i, "SampleJoiseMap",
ThreadProcessNoiseLayers(
HEIGHT.toFloat().div(Terrarum.THREADS).times(i).roundInt(),
HEIGHT.toFloat().div(Terrarum.THREADS).times(i.plus(1)).roundInt() - 1,
noiseRecords
),
"SampleJoiseMap"
)
)
}