Renderer · const

MAX_GRADE_SIZE

The largest lattice accepted, because the cost is cubic and a caller will not feel it.

Explained in Hello world.

const MAX_GRADE_SIZE = 64
import { MAX_GRADE_SIZE } from '@driftengine/core';

In depth

64 is a megabyte of texture; 128 would be eight. Refused by name rather than resampled, because a resample is a look the caller did not choose — and a grade that is quietly not the grade somebody authored is worse than one that will not load.