This commit is contained in:
niko
2026-04-08 23:40:05 +02:00
parent d6894bcbc7
commit 18dc73f922
7750 changed files with 1795369 additions and 0 deletions
@@ -0,0 +1,150 @@
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.Rendering;
namespace RecRoom.Utils.Perf
{
// Token: 0x02002011 RID: 8209
[Token(Token = "0x2002011")]
[StructLayout(3)]
public class PerfTesterCameraRenderTimer : MonoBehaviour
{
// Token: 0x0600E320 RID: 58144 RVA: 0x00360F68 File Offset: 0x0035F168
[Token(Token = "0x600E320")]
[Address(RVA = "0x132F700", Offset = "0x132E100", VA = "0x18132F700")]
private void Awake()
{
RenderPipelineManager.beginCameraRendering += new Action(this.CDJMNIHFNMK);
RenderPipelineManager.endCameraRendering += new Action(this.EMLECMECGOM);
}
// Token: 0x0600E321 RID: 58145 RVA: 0x00360F98 File Offset: 0x0035F198
[Token(Token = "0x600E321")]
[Address(RVA = "0x132F7C0", Offset = "0x132E1C0", VA = "0x18132F7C0")]
private void CDJMNIHFNMK(ScriptableRenderContext LHOMKMINCHH, Camera FOMHGMLPOND)
{
if (!this.StartQueued)
{
if (this.Running)
{
this.RenderStopWatch.Start();
return;
}
}
else
{
this.StartQueued = false;
this.Running = true;
int frameCount = Time.frameCount;
this.FrameStart = frameCount;
Stopwatch stopwatch = Stopwatch.StartNew();
this.RenderStopWatch = stopwatch;
}
}
// Token: 0x0600E322 RID: 58146 RVA: 0x00360FF8 File Offset: 0x0035F1F8
[Token(Token = "0x600E322")]
[Address(RVA = "0x132F860", Offset = "0x132E260", VA = "0x18132F860")]
private void EMLECMECGOM(ScriptableRenderContext LHOMKMINCHH, Camera FOMHGMLPOND)
{
if (this.Running && !this.Running)
{
this.RenderStopWatch.Stop();
int frameCount = Time.frameCount;
TimeSpan elapsed = this.RenderStopWatch.Elapsed;
object[] array = new object[4];
if (array != 0)
{
}
array[0] = array;
if (" Frames: " != 0)
{
}
array[1] = " Frames: ";
if (" Frames: " != 0)
{
}
array[2] = " Frames: ";
if ("ms" != 0)
{
}
array[3] = "ms";
global::UnityEngine.Debug.Log(string.Concat(array));
bool isHighResolution = Stopwatch.IsHighResolution;
string text;
global::UnityEngine.Debug.Log(text);
this.Running = false;
RenderPipelineManager.beginCameraRendering -= new Action(this.CDJMNIHFNMK);
RenderPipelineManager.endCameraRendering -= new Action(this.EMLECMECGOM);
}
}
// Token: 0x0600E323 RID: 58147 RVA: 0x003610E0 File Offset: 0x0035F2E0
[Token(Token = "0x600E323")]
[Address(RVA = "0x132FC00", Offset = "0x132E600", VA = "0x18132FC00")]
public void QueueTest()
{
RenderPipelineManager.beginCameraRendering += new Action(this.CDJMNIHFNMK);
RenderPipelineManager.endCameraRendering += new Action(this.EMLECMECGOM);
this.StartQueued = true;
}
// Token: 0x0600E324 RID: 58148 RVA: 0x00361118 File Offset: 0x0035F318
[Token(Token = "0x600E324")]
[Address(RVA = "0x132FCC0", Offset = "0x132E6C0", VA = "0x18132FCC0")]
private void Update()
{
if (Input.GetKeyDownInt(KeyCode.Alpha9))
{
global::UnityEngine.Debug.Log("Queueing Render Capture");
RenderPipelineManager.beginCameraRendering += new Action(this.CDJMNIHFNMK);
RenderPipelineManager.endCameraRendering += new Action(this.EMLECMECGOM);
this.StartQueued = true;
}
}
// Token: 0x0600E325 RID: 58149 RVA: 0x00361164 File Offset: 0x0035F364
[Token(Token = "0x600E325")]
[Address(RVA = "0x132FDE0", Offset = "0x132E7E0", VA = "0x18132FDE0")]
public PerfTesterCameraRenderTimer()
{
}
// Token: 0x040094FD RID: 38141
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40094FD")]
public Stopwatch RenderStopWatch;
// Token: 0x040094FE RID: 38142
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40094FE")]
[INPFBLGGAJF]
public bool StartQueued;
// Token: 0x040094FF RID: 38143
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
[Token(Token = "0x40094FF")]
[INPFBLGGAJF]
public int FrameStart;
// Token: 0x04009500 RID: 38144
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4009500")]
[INPFBLGGAJF]
public bool Running;
// Token: 0x04009501 RID: 38145
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4009501")]
[SerializeField]
private int captureFrameCount = (int)((ulong)100L);
// Token: 0x04009502 RID: 38146
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4009502")]
public int renderCount;
}
}
@@ -0,0 +1,74 @@
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.Utils.Perf
{
// Token: 0x02002012 RID: 8210
[Token(Token = "0x2002012")]
[StructLayout(3)]
public class PerfTesterPostUpdate : MonoBehaviour
{
// Token: 0x0600E326 RID: 58150 RVA: 0x00361184 File Offset: 0x0035F384
[Token(Token = "0x600E326")]
[Address(RVA = "0x132FDF0", Offset = "0x132E7F0", VA = "0x18132FDF0")]
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: ";
if (" Frames: " != 0)
{
}
array[2] = " Frames: ";
if ("ms" != 0)
{
}
array[3] = "ms";
global::UnityEngine.Debug.Log(string.Concat(array));
bool isHighResolution = Stopwatch.IsHighResolution;
string text;
global::UnityEngine.Debug.Log(text);
this.preUpdate.Running = false;
}
if (Input.GetKeyDownInt(KeyCode.Alpha0))
{
global::UnityEngine.Debug.Log("Queueing Capture");
this.preUpdate.StartQueued = true;
}
}
// Token: 0x0600E327 RID: 58151 RVA: 0x00361270 File Offset: 0x0035F470
[Token(Token = "0x600E327")]
[Address(RVA = "0x1330180", Offset = "0x132EB80", VA = "0x181330180")]
public PerfTesterPostUpdate()
{
}
// Token: 0x04009503 RID: 38147
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4009503")]
[SerializeField]
private PerfTesterPreUpdate preUpdate;
// Token: 0x04009504 RID: 38148
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4009504")]
[SerializeField]
private int captureFrameCount = (int)((ulong)100L);
}
}
@@ -0,0 +1,67 @@
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.Utils.Perf
{
// Token: 0x02002013 RID: 8211
[Token(Token = "0x2002013")]
[StructLayout(3)]
public class PerfTesterPreUpdate : MonoBehaviour
{
// Token: 0x0600E328 RID: 58152 RVA: 0x00361290 File Offset: 0x0035F490
[Token(Token = "0x600E328")]
[Address(RVA = "0x1330190", Offset = "0x132EB90", VA = "0x181330190")]
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: 0x0600E329 RID: 58153 RVA: 0x003612E8 File Offset: 0x0035F4E8
[Token(Token = "0x600E329")]
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
public PerfTesterPreUpdate()
{
}
// Token: 0x04009505 RID: 38149
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4009505")]
public Stopwatch FrameStopWatch;
// Token: 0x04009506 RID: 38150
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4009506")]
[INPFBLGGAJF]
public int FrameStart;
// Token: 0x04009507 RID: 38151
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
[Token(Token = "0x4009507")]
[INPFBLGGAJF]
public bool StartQueued;
// Token: 0x04009508 RID: 38152
[global::Cpp2IlInjected.FieldOffset(Offset = "0x25")]
[Token(Token = "0x4009508")]
[INPFBLGGAJF]
public bool Running;
}
}
@@ -0,0 +1,68 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace RecRoom.Utils.Perf
{
// Token: 0x02002014 RID: 8212
[Token(Token = "0x2002014")]
[StructLayout(3)]
public class SceneBootTimer : MonoBehaviour
{
// Token: 0x0600E32A RID: 58154 RVA: 0x003612FC File Offset: 0x0035F4FC
[Token(Token = "0x600E32A")]
[Address(RVA = "0x1330390", Offset = "0x132ED90", VA = "0x181330390")]
private IEnumerator Start()
{
/*
An exception occurred when decompiling this method (0600E32A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator RecRoom.Utils.Perf.SceneBootTimer::Start()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(BGEJAIICNIM::System.IDisposable.Dispose, ldloc:BGEJAIICNIM(var_0))
stfld:int32(BGEJAIICNIM::<>1__state, ldloc:BGEJAIICNIM(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
stfld:SceneBootTimer(BGEJAIICNIM::<>4__this, ldloc:BGEJAIICNIM(var_0), ldloc:SceneBootTimer(this))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600E32B RID: 58155 RVA: 0x00361320 File Offset: 0x0035F520
[Token(Token = "0x600E32B")]
[Address(RVA = "0x1330220", Offset = "0x132EC20", VA = "0x181330220")]
private void OnDestroy()
{
if (!this.ACJDLBHNHHA)
{
object[] array = new object[2];
Scene activeScene = SceneManager.GetActiveScene();
throw new MissingMethodException();
}
}
// Token: 0x0600E32C RID: 58156 RVA: 0x0036138C File Offset: 0x0035F58C
[Token(Token = "0x600E32C")]
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
public SceneBootTimer()
{
}
// Token: 0x04009509 RID: 38153
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4009509")]
private bool ACJDLBHNHHA;
}
}