oh dear
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Utils.Perf
|
||||
{
|
||||
// Token: 0x020021C7 RID: 8647
|
||||
[Token(Token = "0x20021C7")]
|
||||
public class PerfTesterPreUpdate : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600DD88 RID: 56712 RVA: 0x00336C84 File Offset: 0x00334E84
|
||||
[Token(Token = "0x600DD88")]
|
||||
[Address(RVA = "0x1106FC0", Offset = "0x1105DC0", VA = "0x181106FC0")]
|
||||
private void Update()
|
||||
{
|
||||
if (!this.StartQueued)
|
||||
{
|
||||
if (this.Running)
|
||||
{
|
||||
this.FrameStopWatch.Start();
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.StartQueued = false;
|
||||
int frameCount = Time.frameCount;
|
||||
this.FrameStart = frameCount;
|
||||
Stopwatch stopwatch = Stopwatch.StartNew();
|
||||
this.FrameStopWatch = stopwatch;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600DD89 RID: 56713 RVA: 0x00336CDC File Offset: 0x00334EDC
|
||||
[Token(Token = "0x600DD89")]
|
||||
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
||||
public PerfTesterPreUpdate()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04009097 RID: 37015
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4009097")]
|
||||
public Stopwatch FrameStopWatch;
|
||||
|
||||
// Token: 0x04009098 RID: 37016
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4009098")]
|
||||
[INPFBLGGAJF]
|
||||
public int FrameStart;
|
||||
|
||||
// Token: 0x04009099 RID: 37017
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4009099")]
|
||||
[INPFBLGGAJF]
|
||||
public bool StartQueued;
|
||||
|
||||
// Token: 0x0400909A RID: 37018
|
||||
[FieldOffset(Offset = "0x25")]
|
||||
[Token(Token = "0x400909A")]
|
||||
[INPFBLGGAJF]
|
||||
public bool Running;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user