API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceFrameBudget
How much of the running frame is still unspent, handed to the SystemMethods.postFrame phase. Modelled on the platform's `IdleDeadline`, so the canonical loop is the one the browser already teaches: ```ts while (budget.timeRemaining() > 0 && queue.length > 0) { doWork(); } ``` The figure is advisory. JavaScript is run-to-completion, so nothing can interrupt a unit of work that overruns - the budget tells work that polls it when to stop, and work that ignores it is unaffected.
import { FrameBudget } from '@codexo/exojs'How much of the running frame is still unspent, handed to the SystemMethods.postFrame phase.
Modelled on the platform's `IdleDeadline`, so the canonical loop is the one the browser already teaches:
```ts while (budget.timeRemaining() > 0 && queue.length > 0) { doWork(); } ```
The figure is advisory. JavaScript is run-to-completion, so nothing can interrupt a unit of work that overruns - the budget tells work that polls it when to stop, and work that ignores it is unaffected.