Class WorldRenderSettings
Defines shared rendering constants for tile and chunk presentation.
public sealed class WorldRenderSettings
- Inheritance
-
WorldRenderSettings
- Inherited Members
Constructors
WorldRenderSettings()
Creates render settings using the default tile size, visible chunk padding, and cache rebuild budget.
public WorldRenderSettings()
WorldRenderSettings(int, int, int)
Creates render settings with explicit tile size, visible chunk padding, and cache rebuild budget values.
public WorldRenderSettings(int tileSizePixels, int visibleChunkPadding, int maxDirtyChunkCacheRebuildsPerFrame = 6)
Parameters
tileSizePixelsintThe size of one tile in screen pixels.
visibleChunkPaddingintThe number of extra chunks to include around the camera view.
maxDirtyChunkCacheRebuildsPerFrameintThe maximum number of dirty chunk render caches rebuilt in a single frame.
Properties
ChunkHeightPixels
Gets the height of one chunk in pixels.
public int ChunkHeightPixels { get; }
Property Value
ChunkWidthPixels
Gets the width of one chunk in pixels.
public int ChunkWidthPixels { get; }
Property Value
MaxDirtyChunkCacheRebuildsPerFrame
Gets the maximum number of dirty chunk render caches rebuilt during one frame.
public int MaxDirtyChunkCacheRebuildsPerFrame { get; }
Property Value
TileSizePixels
Gets the size of one tile in screen pixels.
public int TileSizePixels { get; }
Property Value
VisibleChunkPadding
Gets the number of extra chunks to include around the visible camera range.
public int VisibleChunkPadding { get; }