using System; using System.Diagnostics; using Cpp2IlInjected; using UnityEngine; namespace RecRoom.Utils.Perf { // Token: 0x020021C6 RID: 8646 [Token(Token = "0x20021C6")] public class PerfTesterPostUpdate : MonoBehaviour { // Token: 0x0600DD86 RID: 56710 RVA: 0x00336B74 File Offset: 0x00334D74 [Token(Token = "0x600DD86")] [Address(RVA = "0x1106C20", Offset = "0x1105A20", VA = "0x181106C20")] private void Update() { PerfTesterPreUpdate perfTesterPreUpdate = this.preUpdate; if (perfTesterPreUpdate.Running) { perfTesterPreUpdate.FrameStopWatch.Stop(); int frameCount = Time.frameCount; TimeSpan elapsed = this.preUpdate.FrameStopWatch.Elapsed; object[] array = new object[4]; if (array != 0) { } array[0] = array; if (" Frames: " != 0) { } array[1] = " Frames: "; string text; if (text != 0) { } array[2] = text; if ("ms" != 0) { } array[3] = "ms"; global::UnityEngine.Debug.Log(string.Concat(array)); bool isHighResolution = Stopwatch.IsHighResolution; string text2; global::UnityEngine.Debug.Log("High Res: " + text2); this.preUpdate.Running = false; } if (Input.GetKeyDownInt(KeyCode.Alpha0)) { global::UnityEngine.Debug.Log("Queueing Capture"); this.preUpdate.StartQueued = true; } } // Token: 0x0600DD87 RID: 56711 RVA: 0x00336C64 File Offset: 0x00334E64 [Token(Token = "0x600DD87")] [Address(RVA = "0x1106FB0", Offset = "0x1105DB0", VA = "0x181106FB0")] public PerfTesterPostUpdate() { } // Token: 0x04009095 RID: 37013 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4009095")] [SerializeField] private PerfTesterPreUpdate preUpdate; // Token: 0x04009096 RID: 37014 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4009096")] [SerializeField] private int captureFrameCount = (int)((ulong)100L); } }