feat: add Configuration class with user-tunable defaults

This commit is contained in:
2026-06-01 09:28:53 +02:00
parent c1be0f75e5
commit 1339bb45ec
2 changed files with 78 additions and 0 deletions

21
Core/Configuration.cs Normal file
View File

@@ -0,0 +1,21 @@
namespace VoxelEngine.Core;
public sealed class Configuration
{
public int RenderDistanceHorizontal { get; set; } = 8;
public int RenderDistanceVertical { get; set; } = 4;
public int SpawnReadyRadiusHorizontal { get; set; } = 1;
public int MaxGenerateJobsInFlight { get; set; } = 8;
public int MaxMeshUploadsPerFrame { get; set; } = 4;
public int WorkerThreadCount { get; set; } = Math.Max(1, Environment.ProcessorCount - 1);
public float MoveSpeed { get; set; } = 8f;
public float MouseSensitivity { get; set; } = 0.15f;
public float Fov { get; set; } = 60f;
public int WindowWidth { get; set; } = 1280;
public int WindowHeight { get; set; } = 720;
public int? Seed { get; set; } = null;
}