*/
u32 vertex_count = 0;
+ u32 drawcall_count = 0;
// For limiting number of mesh animations per frame
u32 mesh_animate_count = 0;
}
driver->setMaterial(list.m);
+ drawcall_count += list.bufs.size();
for (auto &pair : list.bufs) {
scene::IMeshBuffer *buf = pair.second;
}
g_profiler->avg(prefix + "vertices drawn [#]", vertex_count);
+ g_profiler->avg(prefix + "drawcalls [#]", drawcall_count);
}
static bool getVisibleBrightness(Map *map, const v3f &p0, v3f dir, float step,
return;
float duration_ms = m_timer->stop(true);
- float duration = duration_ms / 1000.0;
+ float duration = duration_ms;
if (m_profiler) {
switch (m_type) {
case SPT_ADD: