Hi there,
I would like to know what is the best way to do GPU profiling (get the time-stamp between two point in time during the rendering)…
For DirectX11 I found the following function in the CommandList.Direct3D.cs (in SiliconStudio.Xenko.Graphics):
/// <summary>
/// Begins profiling.
/// </summary>
/// <param name="profileColor">Color of the profile.</param>
/// <param name="name">The name.</param>
public unsafe void BeginProfile(Color4 profileColor, string name)
{
if (nativeDeviceProfiler != null)
{
nativeDeviceProfiler.BeginEvent(name);
}
}
I am guessing that this is for hooking an external perf analyser like PIX, however I would really like to get the time-stamps directly in the game and display it in the HUD instead…
Thanks in advance.