ドキュメント

Unity Engine

Unity Engine

maxNumberOfSamplesPerFrame

Resize the profiler sample buffers to allow the desired amount of samples per thread.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

注意
Deprecated. maxNumberOfSamplesPerFrame has been depricated. Use maxUsedMemory instead
public static int maxNumberOfSamplesPerFrame { get; set; }

Remarks

If the Scene is very complex, the number of samples recorded for one frame can surpass the reserved number of samples. The preallocated buffers can then be resized using this API. If dynamic resizing is desired, set this value to -1. This will allow the profiler to increase memory to not skip frames.
The default value for Profiler.maxNumberOfSamplesPerFrame is 512K samples per thread. The maximum value is 8M samples per thread unless -1 is assigned.