Skip to content

Crafting — Diagnostics

This folder contains diagnostics-only smoke tests for profiling and misuse detection in the Crafting system.

These scripts are intended for:

  • profiling hot paths
  • measuring scaling under heavy validator/modifier counts
  • catching obvious allocation or throughput regressions
  • helping developers inspect misuse patterns in the Unity Profiler

These scripts are not gameplay code, not benchmarks, and not part of the supported Crafting runtime API.

Included

CraftingPreflightPerfSmoke

Measures repeated preflight cost using: - CanCraftDetailed(...) - CanCraftCount(...)

Useful for profiling UI spam, repeated recipe checks, and multi-owner preflight workloads.

CraftingRulePerfSmoke

Measures how preflight cost scales as owners gain more: - validators - modifiers

Useful for profiling oversized rule chains and extension misuse.

CraftingJobPerfSmoke

Measures enqueue/tick/cancel throughput under heavy job creation workloads.

PerfPassthroughCraftingValidator

No-op validator used only for diagnostics.

PerfPassthroughCraftingModifier

No-op modifier used only for diagnostics.

Important

These tests do not prove: - that every project will perform the same - that custom rules are cheap - that UI, VFX, animation, or networking are free - that this replaces the Unity Profiler

Use these scripts as profiling aids, not guarantees.