From ebcef463bb6c447e788c90fe4235f2504de186d3 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Sat, 26 Jul 2025 13:47:20 +0100 Subject: Add configurable render chunk allocation modes --- src/models/RaytraceContext.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/models/RaytraceContext.ts') diff --git a/src/models/RaytraceContext.ts b/src/models/RaytraceContext.ts index acd4336..d028c1a 100644 --- a/src/models/RaytraceContext.ts +++ b/src/models/RaytraceContext.ts @@ -38,6 +38,13 @@ export interface RaytracerOptions { refractions: boolean; maxRecurseDepth: number; maxDrawDistance: number; - bufferDrawCalls: boolean; directMemoryTransfer: boolean; + chunkAllocationMode: ChunkAllocationMode; } + +export enum ChunkAllocationMode { + SEQUENTIAL, + RANDOM, + CENTER_TO_EDGE, + EDGE_TO_CENTER +} \ No newline at end of file -- cgit v1.2.3