Skip to content

@pumpkin-plugins/terrain API / adaptive-budget / AdaptiveWorkBudgetOptions

Interface: AdaptiveWorkBudgetOptions ​

Defined in: adaptive-budget.ts:2

Options for a work budget that adapts to recent host load and measured work cost.

Properties ​

initialUnits ​

initialUnits: number

Defined in: adaptive-budget.ts:4

Work units to allow before a cost measurement is available.


reserveMs? ​

optional reserveMs?: number

Defined in: adaptive-budget.ts:8

Time to leave for the server and other plugins. Defaults to 5 ms.


tickDurationMs? ​

optional tickDurationMs?: number

Defined in: adaptive-budget.ts:6

Length of one server tick in milliseconds. Defaults to Minecraft's 50 ms tick.

Pumpkin Plugins documentation