ProfilingPositionCycler
A class in Root.Township, the global namespace.
Client debug settings: moves the camera to saved positions, waits for chunks to load, records Unity profiler data and render stats, and writes a report.
- Listed in Global namespace: P
- Inherits or implements
GlobalSettings<ProfilingPositionCycler> - Derived types
ProfilingPositionCycler,ProfilingPositionCycler.Create - Nested types
Create,ProfilingPosition - Attributes
GlobalSettings
Constructors
| Member | What it is |
|---|---|
ProfilingPositionCycler() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
| Member | What it is |
|---|---|
List<ProfilingPositionCycler.ProfilingPosition> positions | Camera positions and rotations to profile. |
1 private and internal field
Properties
| Member | What it is |
|---|---|
static string ProfilingPath { get; } | ProfilingResults folder under persistent storage. |
Methods
| Member | What it is |
|---|---|
IEnumerator SingleProfile() (iterator) | Profiles the current camera position only. |
IEnumerator StartForwardRendereringProfiler(Transform cameraTransform, Transform vrCameraTransform, int iterations) (iterator) | For each position, records a baseline and then again with each RenderingDisabler type off, for several iterations. |
IEnumerator StartProfiling(Transform cameraTransform, Transform vrCameraTransform) (iterator) | For each position, loads the chunk, waits, records a profiler log for up to 150 frames and adds FPS and render stats to the report. |