More circular world test
This commit is contained in:
parent
2653d043a9
commit
0866edcb74
@ -107,7 +107,7 @@ fun main() {
|
||||
var set = 0L
|
||||
var parse = 0L
|
||||
|
||||
for (chunkX in 0 .. 61) {
|
||||
for (chunkX in 0 .. 94) {
|
||||
for (chunkY in 0 .. 61) {
|
||||
var t = System.currentTimeMillis()
|
||||
val data = db.read(byteArrayOf(1, 0, chunkX.toByte(), 0, chunkY.toByte()))
|
||||
|
@ -125,7 +125,7 @@ class StarboundClient : AutoCloseable {
|
||||
|
||||
val gl = GLStateTracker()
|
||||
|
||||
var world: ClientWorld? = ClientWorld(this, 0L, 0)
|
||||
var world: ClientWorld? = ClientWorld(this, 0L, 94)
|
||||
|
||||
fun ensureSameThread() = gl.ensureSameThread()
|
||||
|
||||
|
@ -258,7 +258,7 @@ abstract class World<This : World<This, ChunkType>, ChunkType : Chunk<This, Chun
|
||||
*/
|
||||
open fun computeIfAbsent(pos: ChunkPos): ChunkType {
|
||||
@Suppress("Name_Shadowing")
|
||||
val pos = pos.circular(widthInChunks)
|
||||
val pos = if (isCircular) pos.circular(widthInChunks) else pos
|
||||
|
||||
val _lastAccessedChunk = lastAccessedChunk
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user