Show More
Commit Description:
Add timers for Simulation and various engines...
Commit Description:
Add timers for Simulation and various engines
Starting to add additional timers for different stages of the process of
updating in order to get more insight into what is slowing it down.
The update takes 9ms, which is much longer than it used to.
Engine-specific timers are coming later.
References:
File last commit:
Show/Diff file:
Action:
ImGui.NET/Generated/ImDrawVert.gen.cs
26 lines | 1.0 KiB | text/x-csharp | CSharpLexer
26 lines | 1.0 KiB | text/x-csharp | CSharpLexer
r16 | using System; | |||
using System.Numerics; | ||||
using System.Runtime.CompilerServices; | ||||
using System.Text; | ||||
namespace ImGuiNET | ||||
{ | ||||
public unsafe partial struct ImDrawVert | ||||
{ | ||||
public Vector2 pos; | ||||
public Vector2 uv; | ||||
public uint col; | ||||
} | ||||
public unsafe partial struct ImDrawVertPtr | ||||
{ | ||||
public ImDrawVert* NativePtr { get; } | ||||
public ImDrawVertPtr(ImDrawVert* nativePtr) => NativePtr = nativePtr; | ||||
public ImDrawVertPtr(IntPtr nativePtr) => NativePtr = (ImDrawVert*)nativePtr; | ||||
public static implicit operator ImDrawVertPtr(ImDrawVert* nativePtr) => new ImDrawVertPtr(nativePtr); | ||||
public static implicit operator ImDrawVert* (ImDrawVertPtr wrappedPtr) => wrappedPtr.NativePtr; | ||||
public static implicit operator ImDrawVertPtr(IntPtr nativePtr) => new ImDrawVertPtr(nativePtr); | ||||
public ref Vector2 pos => ref Unsafe.AsRef<Vector2>(&NativePtr->pos); | ||||
public ref Vector2 uv => ref Unsafe.AsRef<Vector2>(&NativePtr->uv); | ||||
public ref uint col => ref Unsafe.AsRef<uint>(&NativePtr->col); | ||||
} | ||||
} | ||||