@web-engine-dev/scheduler / SchedulerConfig
Interface: SchedulerConfig
Configuration for the scheduler.
Controls parallel execution behavior and default system placement.
Example
typescript
// Basic configuration
const config: SchedulerConfig = {
enableParallelExecution: true,
maxParallelWorkers: 4,
defaultStage: CoreStages.UPDATE,
};
const scheduler = createScheduler<GameContext>(config);Properties
defaultStage?
optionaldefaultStage:string
Default stage for systems without explicit stage
enableParallelExecution?
optionalenableParallelExecution:boolean
Enable parallel execution (async concurrency on the main thread)
maxParallelWorkers?
optionalmaxParallelWorkers:number
Maximum number of concurrent async systems (0 or undefined = unlimited)