Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/RecRoom/Utils/Perf/PerfTesterPostUpdate.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

74 lines
1.9 KiB
C#

using System;
using System.Diagnostics;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.Utils.Perf
{
// Token: 0x020022AA RID: 8874
[Token(Token = "0x20022AA")]
public class PerfTesterPostUpdate : MonoBehaviour
{
// Token: 0x0600E192 RID: 57746 RVA: 0x00340058 File Offset: 0x0033E258
[Token(Token = "0x600E192")]
[Address(RVA = "0x1C0F190", Offset = "0x1C0E190", VA = "0x181C0F190")]
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: 0x0600E193 RID: 57747 RVA: 0x00340148 File Offset: 0x0033E348
[Token(Token = "0x600E193")]
[Address(RVA = "0x1C0F520", Offset = "0x1C0E520", VA = "0x181C0F520")]
public PerfTesterPostUpdate()
{
}
// Token: 0x04009268 RID: 37480
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4009268")]
[SerializeField]
private PerfTesterPreUpdate preUpdate;
// Token: 0x04009269 RID: 37481
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4009269")]
[SerializeField]
private int captureFrameCount = (int)((ulong)100L);
}
}