Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

QualityStart

QualityStart = Partial<Record<DeviceClass, FixedQualityLevel>> | ((device) => FixedQualityLevel | undefined)

The level a device starts at under Automatic, on Game’s quality.start. The common form is a map from device class to level, such as { [DeviceClass.GraphicsCard]: QualityLevel.Medium }, and a class it leaves out starts at the engine’s level, engineStartLevels. The other form is a function that receives the device’s reading and returns a level, or undefined to keep the engine’s level for that device. It runs once each time the game loads, before the scene mounts, never during play.