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):
/// Begins profiling.
/// <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)
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.