From 802c5f5b38bc152c09a0468f13e4ca10d3627235 Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Mon, 28 Jul 2025 20:54:08 +0200 Subject: [PATCH] Remove the mutexes (part 1) --- src/renderer/mesh_storage.zig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/renderer/mesh_storage.zig b/src/renderer/mesh_storage.zig index 98c40dc1..b061fdff 100644 --- a/src/renderer/mesh_storage.zig +++ b/src/renderer/mesh_storage.zig @@ -197,10 +197,6 @@ pub fn getLight(wx: i32, wy: i32, wz: i32) ?[6]u8 { const x = (wx >> mesh.chunk.voxelSizeShift) & chunk.chunkMask; const y = (wy >> mesh.chunk.voxelSizeShift) & chunk.chunkMask; const z = (wz >> mesh.chunk.voxelSizeShift) & chunk.chunkMask; - mesh.lightingData[0].lock.lockRead(); - defer mesh.lightingData[0].lock.unlockRead(); - mesh.lightingData[1].lock.lockRead(); - defer mesh.lightingData[1].lock.unlockRead(); return mesh.lightingData[1].getValue(x, y, z) ++ mesh.lightingData[0].getValue(x, y, z); }