Add polycount display in GEVulkanDriver
This commit is contained in:
parent
f768badee0
commit
e9924357cd
@ -65,6 +65,14 @@ public:
|
|||||||
void uploadDynamicData(GEVulkanDriver* vk, GEVulkanCameraSceneNode* cam);
|
void uploadDynamicData(GEVulkanDriver* vk, GEVulkanCameraSceneNode* cam);
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
void render(GEVulkanDriver* vk, GEVulkanCameraSceneNode* cam);
|
void render(GEVulkanDriver* vk, GEVulkanCameraSceneNode* cam);
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
unsigned getPolyCount() const
|
||||||
|
{
|
||||||
|
unsigned result = 0;
|
||||||
|
for (auto& cmd : m_cmds)
|
||||||
|
result += (cmd.indexCount / 3) * cmd.instanceCount;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}; // GEVulkanDrawCall
|
}; // GEVulkanDrawCall
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2187,6 +2187,7 @@ void GEVulkanDriver::buildCommandBuffers()
|
|||||||
m_irrlicht_device->getSceneManager())->getDrawCalls())
|
m_irrlicht_device->getSceneManager())->getDrawCalls())
|
||||||
{
|
{
|
||||||
p.second->render(this, p.first);
|
p.second->render(this, p.first);
|
||||||
|
PrimitivesDrawn += p.second->getPolyCount();
|
||||||
}
|
}
|
||||||
GEVulkan2dRenderer::render();
|
GEVulkan2dRenderer::render();
|
||||||
|
|
||||||
|
@ -1849,14 +1849,22 @@ void IrrDriver::displayFPS()
|
|||||||
if (low > kilotris) low = kilotris;
|
if (low > kilotris) low = kilotris;
|
||||||
if (high < kilotris) high = kilotris;
|
if (high < kilotris) high = kilotris;
|
||||||
|
|
||||||
if ((UserConfigParams::m_artist_debug_mode)&&(CVS->isGLSL()))
|
if (UserConfigParams::m_artist_debug_mode)
|
||||||
{
|
{
|
||||||
fps_string = StringUtils::insertValues
|
if (CVS->isGLSL())
|
||||||
(L"FPS: %d/%d/%d - PolyCount: %d Solid, %d Shadows - LightDist: %d\n"
|
{
|
||||||
"Complexity %d, Total skinning joints: %d, Ping: %dms",
|
fps_string = StringUtils::insertValues
|
||||||
min, fps, max, SP::sp_solid_poly_count,
|
(L"FPS: %d/%d/%d - PolyCount: %d Solid, %d Shadows - LightDist: %d\n"
|
||||||
SP::sp_shadow_poly_count, m_last_light_bucket_distance, irr_driver->getSceneComplexity(),
|
"Complexity %d, Total skinning joints: %d, Ping: %dms",
|
||||||
m_skinning_joint, ping);
|
min, fps, max, SP::sp_solid_poly_count,
|
||||||
|
SP::sp_shadow_poly_count, m_last_light_bucket_distance, irr_driver->getSceneComplexity(),
|
||||||
|
m_skinning_joint, ping);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fps_string = StringUtils::insertValues(L"FPS: %d/%d/%d - PolyCount: %d Solid, Ping: %dms", min, fps,
|
||||||
|
max, m_video_driver->getPrimitiveCountDrawn(0), ping);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user