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/ImDrawData.gen.cs
54 lines | 2.4 KiB | text/x-csharp | CSharpLexer
54 lines | 2.4 KiB | text/x-csharp | CSharpLexer
r16 | using System; | |||
using System.Numerics; | ||||
using System.Runtime.CompilerServices; | ||||
using System.Text; | ||||
namespace ImGuiNET | ||||
{ | ||||
public unsafe partial struct ImDrawData | ||||
{ | ||||
public byte Valid; | ||||
public int CmdListsCount; | ||||
public int TotalIdxCount; | ||||
public int TotalVtxCount; | ||||
r503 | public ImDrawList** CmdLists; | |||
r16 | public Vector2 DisplayPos; | |||
public Vector2 DisplaySize; | ||||
public Vector2 FramebufferScale; | ||||
public ImGuiViewport* OwnerViewport; | ||||
} | ||||
public unsafe partial struct ImDrawDataPtr | ||||
{ | ||||
public ImDrawData* NativePtr { get; } | ||||
public ImDrawDataPtr(ImDrawData* nativePtr) => NativePtr = nativePtr; | ||||
public ImDrawDataPtr(IntPtr nativePtr) => NativePtr = (ImDrawData*)nativePtr; | ||||
public static implicit operator ImDrawDataPtr(ImDrawData* nativePtr) => new ImDrawDataPtr(nativePtr); | ||||
public static implicit operator ImDrawData* (ImDrawDataPtr wrappedPtr) => wrappedPtr.NativePtr; | ||||
public static implicit operator ImDrawDataPtr(IntPtr nativePtr) => new ImDrawDataPtr(nativePtr); | ||||
public ref bool Valid => ref Unsafe.AsRef<bool>(&NativePtr->Valid); | ||||
public ref int CmdListsCount => ref Unsafe.AsRef<int>(&NativePtr->CmdListsCount); | ||||
public ref int TotalIdxCount => ref Unsafe.AsRef<int>(&NativePtr->TotalIdxCount); | ||||
public ref int TotalVtxCount => ref Unsafe.AsRef<int>(&NativePtr->TotalVtxCount); | ||||
r503 | public IntPtr CmdLists { get => (IntPtr)NativePtr->CmdLists; set => NativePtr->CmdLists = (ImDrawList**)value; } | |||
r16 | public ref Vector2 DisplayPos => ref Unsafe.AsRef<Vector2>(&NativePtr->DisplayPos); | |||
public ref Vector2 DisplaySize => ref Unsafe.AsRef<Vector2>(&NativePtr->DisplaySize); | ||||
public ref Vector2 FramebufferScale => ref Unsafe.AsRef<Vector2>(&NativePtr->FramebufferScale); | ||||
public ImGuiViewportPtr OwnerViewport => new ImGuiViewportPtr(NativePtr->OwnerViewport); | ||||
public void Clear() | ||||
{ | ||||
ImGuiNative.ImDrawData_Clear((ImDrawData*)(NativePtr)); | ||||
} | ||||
public void DeIndexAllBuffers() | ||||
{ | ||||
ImGuiNative.ImDrawData_DeIndexAllBuffers((ImDrawData*)(NativePtr)); | ||||
} | ||||
public void Destroy() | ||||
{ | ||||
ImGuiNative.ImDrawData_destroy((ImDrawData*)(NativePtr)); | ||||
} | ||||
public void ScaleClipRects(Vector2 fb_scale) | ||||
{ | ||||
ImGuiNative.ImDrawData_ScaleClipRects((ImDrawData*)(NativePtr), fb_scale); | ||||
} | ||||
} | ||||
} | ||||