Table of Contents

Class WorldRenderSettings

Namespace
TileWorld.Engine.Render
Assembly
TileWorld.Engine.dll

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

tileSizePixels int

The size of one tile in screen pixels.

visibleChunkPadding int

The number of extra chunks to include around the camera view.

maxDirtyChunkCacheRebuildsPerFrame int

The 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

int

ChunkWidthPixels

Gets the width of one chunk in pixels.

public int ChunkWidthPixels { get; }

Property Value

int

MaxDirtyChunkCacheRebuildsPerFrame

Gets the maximum number of dirty chunk render caches rebuilt during one frame.

public int MaxDirtyChunkCacheRebuildsPerFrame { get; }

Property Value

int

TileSizePixels

Gets the size of one tile in screen pixels.

public int TileSizePixels { get; }

Property Value

int

VisibleChunkPadding

Gets the number of extra chunks to include around the visible camera range.

public int VisibleChunkPadding { get; }

Property Value

int