diff --git a/Graphics/ChunkMesh.cs b/Graphics/ChunkMesh.cs index 43cb958..239d43b 100644 --- a/Graphics/ChunkMesh.cs +++ b/Graphics/ChunkMesh.cs @@ -32,7 +32,6 @@ uint packed = face._data; int offset = i * 4; - // Write little-endian (important!) result[offset] = (byte)(packed); result[offset + 1] = (byte)(packed >> 8); result[offset + 2] = (byte)(packed >> 16); diff --git a/World/Blocks.cs b/World/Blocks.cs index 32406f8..e678fdd 100644 --- a/World/Blocks.cs +++ b/World/Blocks.cs @@ -103,14 +103,12 @@ namespace Voxel.Core ); } - /// highly optimized getter for the hot-path (Meshing/Raycasting) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static BlockDefinition Get(Blocks type) { return _definitions[(byte)type]; } - // internal helper to map the array private static void Define(Blocks type, Textures tex) => _definitions[(byte)type] = new BlockDefinition(type, tex); diff --git a/World/Chunk.cs b/World/Chunk.cs index 428b267..2ec1689 100644 --- a/World/Chunk.cs +++ b/World/Chunk.cs @@ -107,7 +107,6 @@ namespace Voxel.Core public void UpdateChunkMesh() { - // Lock or use ThreadLocal for multi-threading later lock (_faceBuffer) { _faceBuffer.Clear();