fix ghost chunks and wait for generation on startup

This commit is contained in:
Alex Zenla
2024-09-05 21:16:29 -04:00
parent 57b97148a4
commit 54ed81b15d
4 changed files with 15 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import Foundation
public struct ChunkMeshGeneration {
private let queue: OperationQueue
private let localReadyMeshes = ConcurrentDictionary<SIMD3<Int>, RendererMesh>()
private let localReadyMeshes = ConcurrentDictionary<SIMD3<Int>, RendererMesh?>()
weak var game: Game?
weak var renderer: Renderer?