Version: 5.4

Profiler.maxNumberOfSamplesPerFrame

マニュアルに切り替える
public static int maxNumberOfSamplesPerFrame ;

説明

プロファイラーサンプルバッファーのサイズを望ましいスレッドあたりのサンプル量に変更します。

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 maxNumberOfSamplesPerFrame is 512K samples per thread. The maximum value is 8M samples per thread unless -1 is assigned.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961