@@ -123,7 +123,6 @@ export abstract class WorldRendererCommon<WorkerSend = any, WorkerReceive = any>
123
123
124
124
handleResize = ( ) => { }
125
125
highestBlocksByChunks = new Map < string , { [ chunkKey : string ] : HighestBlockInfo } > ( )
126
- highestBlocksBySections = new Map < string , { [ sectionKey : string ] : HighestBlockInfo } > ( )
127
126
blockEntities = { }
128
127
129
128
workersProcessAverageTime = 0
@@ -389,8 +388,6 @@ export abstract class WorldRendererCommon<WorkerSend = any, WorkerReceive = any>
389
388
this . logWorkerWork ( ( ) => `-> ${ data . workerIndex } geometry ${ data . key } ${ JSON . stringify ( { dataSize : JSON . stringify ( data ) . length } ) } ` )
390
389
this . geometryReceiveCount [ data . workerIndex ] ??= 0
391
390
this . geometryReceiveCount [ data . workerIndex ] ++
392
- const { geometry } = data
393
- this . highestBlocksBySections [ data . key ] = geometry . highestBlocks
394
391
const chunkCoords = data . key . split ( ',' ) . map ( Number )
395
392
this . lastChunkDistance = Math . max ( ...this . getDistance ( new Vec3 ( chunkCoords [ 0 ] , 0 , chunkCoords [ 2 ] ) ) )
396
393
}
@@ -688,7 +685,6 @@ export abstract class WorldRendererCommon<WorkerSend = any, WorkerReceive = any>
688
685
for ( let y = this . worldSizeParams . minY ; y < this . worldSizeParams . worldHeight ; y += 16 ) {
689
686
this . setSectionDirty ( new Vec3 ( x , y , z ) , false )
690
687
delete this . finishedSections [ `${ x } ,${ y } ,${ z } ` ]
691
- this . highestBlocksBySections . delete ( `${ x } ,${ y } ,${ z } ` )
692
688
}
693
689
this . highestBlocksByChunks . delete ( `${ x } ,${ z } ` )
694
690
0 commit comments