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

SaveBudgetResult

Where the room’s world stands against the memory its room gives it, and each key it holds against the record limit every save has, at the last checkpoint: each key is a record of its own, and none counts in another’s.

Property Type Description
keyBytes Readonly<Record<string, number>> Each held key’s record, by its handle written as name/parentId/key; empty until a room holds keys. Each meets the record limit alone, 16 MiB as JSON.
maxBytes number What the room gives a world, from its memory and its seats. Past it, a spawn or an added trait that would add a saved entity is refused with CommandRefusal.WorldFull; the development console warns at 75 percent.
maxWorldSaveBytes number What each world save holds, 1 MiB of JSON. Past it, the checkpoint still stores it, and WorldSaveLimitPassedEvent says so.
usedBytes number The memory the world takes the room, estimated, in bytes: each saved entity by what it is, its saved bytes, and the world saves’ text.
worldBytes number The world, as usedBytes.
worldSaveBytes Readonly<Record<string, number>> Each world save’s value as JSON, in UTF-8 bytes, by its key, as the last read of the world measured it: a world save holds one value for the whole world, under maxWorldSaveBytes.