This commit is contained in:
max
2026-03-24 22:34:47 +01:00
parent eb6294c09e
commit 177ee18f52
3 changed files with 0 additions and 4 deletions

View File

@@ -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);

View File

@@ -107,7 +107,6 @@ namespace Voxel.Core
public void UpdateChunkMesh()
{
// Lock or use ThreadLocal for multi-threading later
lock (_faceBuffer)
{
_faceBuffer.Clear();