Class PerfStressRunner
Runtime helper for P4: spawns N duplicated characters, toggles systems, and records coarse profiler metrics.
Use together with Unity Profiler and an FPS overlay.
public sealed class PerfStressRunner : MonoBehaviour
Expand Details ...
- Inheritance
-
object
Object
Component
Behaviour
MonoBehaviour
PerfStressRunner
Properties
LastTsv
public string LastTsv { get; }
Property Value
- string
Methods
ApplyCurrentMode()
[ContextMenu("Apply Current Mode To Spawned Characters")]
public void ApplyCurrentMode()
Despawn()
[ContextMenu("Despawn")]
public void Despawn()
SetAlive(bool)
public void SetAlive(bool alive)
Parameters
| Type |
Name |
Description |
- bool
|
alive |
|
SetAnyMotionEnabled(bool)
Switches every AnyMotion MonoBehaviour on every spawned character off or on. Bound to Y.
public void SetAnyMotionEnabled(bool enabled)
Parameters
| Type |
Name |
Description |
- bool
|
enabled |
|
SetPuppetMasterEnabled(bool)
public void SetPuppetMasterEnabled(bool enabled)
Parameters
| Type |
Name |
Description |
- bool
|
enabled |
|
SetRenderersEnabled(bool)
public void SetRenderersEnabled(bool enabled)
Parameters
| Type |
Name |
Description |
- bool
|
enabled |
|
Spawn()
[ContextMenu("Spawn")]
public void Spawn()
StartMeasurement()
[ContextMenu("Start Measurement")]
public void StartMeasurement()
StopMeasurementAndExport()
[ContextMenu("Stop Measurement And Export")]
public void StopMeasurementAndExport()