More appropriate preferred render region size
This commit is contained in:
parent
f71b561ad7
commit
370c93226b
@ -11,7 +11,9 @@ import ru.dbotthepony.kstarbound.client.render.TileLayerList
|
||||
import ru.dbotthepony.kstarbound.defs.tile.LiquidDefinition
|
||||
import ru.dbotthepony.kstarbound.math.roundTowardsNegativeInfinity
|
||||
import ru.dbotthepony.kstarbound.math.roundTowardsPositiveInfinity
|
||||
import ru.dbotthepony.kstarbound.world.*
|
||||
import ru.dbotthepony.kstarbound.world.CHUNK_SIZE
|
||||
import ru.dbotthepony.kstarbound.world.ChunkPos
|
||||
import ru.dbotthepony.kstarbound.world.World
|
||||
import ru.dbotthepony.kstarbound.world.api.ITileAccess
|
||||
import ru.dbotthepony.kstarbound.world.api.OffsetCellAccess
|
||||
import ru.dbotthepony.kstarbound.world.api.TileView
|
||||
@ -19,14 +21,8 @@ import ru.dbotthepony.kstarbound.world.entities.Entity
|
||||
import ru.dbotthepony.kvector.api.IStruct2i
|
||||
import ru.dbotthepony.kvector.util2d.AABB
|
||||
import ru.dbotthepony.kvector.vector.RGBAColor
|
||||
import ru.dbotthepony.kvector.vector.Vector2d
|
||||
import ru.dbotthepony.kvector.vector.Vector2f
|
||||
import ru.dbotthepony.kvector.vector.Vector2i
|
||||
import java.util.function.Function
|
||||
import kotlin.collections.ArrayList
|
||||
import kotlin.math.PI
|
||||
import kotlin.math.cos
|
||||
import kotlin.math.sin
|
||||
|
||||
class ClientWorld(
|
||||
val client: StarboundClient,
|
||||
@ -40,7 +36,7 @@ class ClientWorld(
|
||||
}
|
||||
|
||||
private fun determineChunkSize(cells: Int): Int {
|
||||
for (i in 16 downTo 1) {
|
||||
for (i in 32 downTo 1) {
|
||||
if (cells % i == 0) {
|
||||
return i
|
||||
}
|
||||
@ -275,7 +271,7 @@ class ClientWorld(
|
||||
}*/
|
||||
|
||||
|
||||
layers.add(-999999) {
|
||||
/*layers.add(-999999) {
|
||||
val rayFan = ArrayList<Vector2d>()
|
||||
|
||||
for (i in 0 .. 359) {
|
||||
@ -297,7 +293,7 @@ class ClientWorld(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
//rayLightCircleNaive(pos, 48.0, falloffByTravel = 1.0, falloffByTile = 3.0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user