Skip to content

Instantly share code, notes, and snippets.

@baobao
Created October 28, 2018 15:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save baobao/ee6954cbe2940c42ba85143994e6fa2c to your computer and use it in GitHub Desktop.
using UnityEngine;
using UnityEngine.Profiling;
public class ReorderTest:MonoBehaviour
{
Recorder _cameraRenderRecorder;
void Start ()
{
// Camera.RenderのRecorderインスタンスを生成
_cameraRenderRecorder = Recorder.Create("Camera.Render");
}
void Update ()
{
if (_cameraRenderRecorder.isValide)
{
// 処理をナノ秒で出力
Debug.Log(_cameraRenderRecorder.elapsedNanoseconds);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment