Skip to content

ComputerTiming beta ​

Interface of @v12-engine/engine/ai

ts
export interface ComputerTiming

Milliseconds a computer player's thinks took: for the report and the stats panel, never for a decision

Members ​

average ​

ts
average: number;

Averaged over its thinks

knowledge ​

ts
knowledge?: number;

Of a think, what bringing the brain's knowledge up to date took, averaged, while the world profiles: a brain's

last ​

ts
last: number;

The last think, all its ticks where it was sliced

longest ​

ts
longest: number;

The longest think there was

longestByModule ​

ts
longestByModule?: Record<string, number>;

By module, the most one pass of it took, always: a brain's. What ThinkBudgetOptions.warnAfterMs is measured against

modules ​

ts
modules?: Record<string, number>;

By module, averaged, while the world profiles (Scheduler.profiling): a brain's

snapshot ​

ts
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 ​

ts
ticks?: number;

Ticks the last think took: 1, unless the brain's budget sliced it over ticks

view ​

ts
view?: number;

Of a think, what reading the picture into the view took (AiView), averaged, while the world profiles: a brain's