GPU Timers¶
GPUTimer m_timer;
/* Timer Creation */
Chrono::Create(&m_timer);
/* Timer Usage */
Chrono::Start(m_timer);
{
Pipeline::Activate(m_prog);
ShaderStage::SetUniformMat4f(m_vert,1,Camera::View(&m_camera));
ShaderStage::SetUniformMat4f(m_vert,2,Camera::Proj(&m_camera));
Scene::Render(m_scene,&m_vert,0);
}
Chrono::Stop(m_timer);
/* Display */
ImGui::Text("Render time : %2.3lf ms", Chrono::ElapsedTime(m_timer));
Chrono API Description¶
-
struct GPUTimer¶
GPU Timer Query Ressource.
-
namespace Chrono¶
Functions