Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-23 22:25:12 +0000
committerStijn Buys <ingar@osirion.org>2008-07-23 22:25:12 +0000
commit11c122eb1cc86ca1a40c84eb411ccd97791dc47d (patch)
tree47186f37814cbac1dc189428f6c61b948307b9ef /src/model/model.cc
parentc1874201ec49ac117f9ce47b29c30d45326b70b5 (diff)
report vertex array size in func_list_model
Diffstat (limited to 'src/model/model.cc')
-rw-r--r--src/model/model.cc4
1 files changed, 2 insertions, 2 deletions
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;
}
}