ComputerTiming beta
Interface of @v12-engine/engine/ai
export interface ComputerTimingMilliseconds a computer player's thinks took: for the report and the stats panel, never for a decision
Members
average
average: number;Averaged over its thinks
knowledge
knowledge?: number;Of a think, what bringing the brain's knowledge up to date took, averaged, while the world profiles: a brain's
last
last: number;The last think, all its ticks where it was sliced
longest
longest: number;The longest think there was
longestByModule
longestByModule?: Record<string, number>;By module, the most one pass of it took, always: a brain's. What ThinkBudgetOptions.warnAfterMs is measured against
modules
modules?: Record<string, number>;By module, averaged, while the world profiles (Scheduler.profiling): a brain's
snapshot
snapshot?: number;Of a think, what taking the picture of the game took (the seat's snapshot()), averaged, while the world profiles: a brain's
ticks
ticks?: number;Ticks the last think took: 1, unless the brain's budget sliced it over ticks
view
view?: number;Of a think, what reading the picture into the view took (AiView), averaged, while the world profiles: a brain's