Vixen
caa30e12
csharp
public readonly record struct PerceptionStats

What one frame of perception cost.

Read the guide page for this →

Remarks

⚠ The report is a deliverable and not a diagnostic, for the reason AgentSchedule's is: a perception system that quietly stopped noticing things is a frame budget met by an AI nobody agreed to. This is what a project reads to find out what its radius, its interval and its LOD bands actually bought.

Fields and properties (9)

  • public int Listeners

    How many listeners there are.

  • public int Sources

    How many stimuli sources there are.

  • public int Passes

    How many listeners actually sensed this frame.

  • public int Examined

    How many source-distance tests were done. ⚠ The number the broad phase exists to make small: without one it is Passes × Sources by construction.

  • public int Cells

    How many grid cells were walked.

  • public int Candidates

    How many sources came out of the radius test and into the sense tests.

  • public int ConeTests

    How many cone tests were done.

  • public int Traces

    How many occlusion raycasts were done. The expensive one, and the reason the other three numbers matter.

  • public int ExaminedWithoutBroadPhase

    What the same frame would have cost with no broad phase at all.

Methods (2)

  • public PerceptionStats(int Listeners, int Sources, int Passes, int Examined, int Cells, int Candidates, int ConeTests, int Traces)

    What one frame of perception cost.

  • public override string ToString()

    Returns the fully qualified type name of this instance.

Used by (4)

  • PerceptionCostTestsVixen.Ai.Perception.Tests
  • PerceptionSystemVixen.Ai.Perception
  • ScheduleTestsVixen.Ai.Perception.Tests
  • SightOcclusionTestsVixen.Ai.Perception.Tests