From 11c122eb1cc86ca1a40c84eb411ccd97791dc47d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 23 Jul 2008 22:25:12 +0000 Subject: report vertex array size in func_list_model --- src/model/model.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/model/model.cc') diff --git a/src/model/model.cc b/src/model/model.cc index 5becc82..979b79a 100644 --- a/src/model/model.cc +++ b/src/model/model.cc @@ -106,7 +106,7 @@ void Model::clear() void Model::list_model(Model *model) { - con_print << " " << model->name() << " " << + con_print << " " << model->name() << " " << model->model_tris_count << "/" << model->model_tris_detail_count << " tris/detail " << model->model_quad_count << "/" << model->model_quad_detail_count << " quads/detail " << model->fragments().size() << " frags "<< std::endl; @@ -122,7 +122,7 @@ void Model::list() con_print << model_registry.size() << " registered models" << std::endl; if (VertexArray::instance()) con_print << "vertex array " << (VertexArray::instance()->index() * 100 / VertexArray::instance()->size()) - << "% of " << VertexArray::instance()->size() << " used" << std::endl; + << "% of " << VertexArray::instance()->size() * 4 *sizeof(float) / (1024*1024) << "Mb used" << std::endl; } } -- cgit v1.2.3