Hi everyone,
I'm looking for a way to get the render stats.
I found in previous posts, several ways to display it in Authoring (in project options and some keyboard options), but I want to display them in a player.
I've found in the documentation two classes that might help me :
- vkRenderManagerStats
- vkRasterizerStats
The first one, works just fine. I can get frame time and FPS correctly.
The second one always display 0 with all members I try to display.
I tried to retrieve the data in a simple execute loop in a behaviour like this :
bool Execute(const vkTaskContext& iCtx)
{
vkRenderManagerStats rmStats = vkRenderManager::InstancePtr().GetStats();
vkRasterizerStats rastStats = rmStats.rstStats;
messageOne = vkString("Frame rate (fps) : ") + vkRoundi(rmStats.averageFPS);
messageTwo = vkString("Last frame time (ms) : ") + rmStats.lastFrameTime;
messageThree = vkString("Mesh count : ") + rastStats.currentMeshCount;
return true;
}
The documentation says :
These values are reset when calling BeginScene and only become valid after a call to EndScene.
The only exception if for the value beginning with current... we are always valid...
So, the member currentMeshCount should be greater than 0.
Thanks.


