diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-23 22:25:12 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-23 22:25:12 +0000 |
commit | 11c122eb1cc86ca1a40c84eb411ccd97791dc47d (patch) | |
tree | 47186f37814cbac1dc189428f6c61b948307b9ef /src | |
parent | c1874201ec49ac117f9ce47b29c30d45326b70b5 (diff) |
report vertex array size in func_list_model
Diffstat (limited to 'src')
-rw-r--r-- | src/model/model.cc | 4 | ||||
-rw-r--r-- | src/model/vertexarray.h | 4 |
2 files changed, 4 insertions, 4 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; } } diff --git a/src/model/vertexarray.h b/src/model/vertexarray.h index 37f2be9..8312789 100644 --- a/src/model/vertexarray.h +++ b/src/model/vertexarray.h @@ -51,13 +51,13 @@ public: return vertex_overflow; } - /// number of allocated floats + /// size of the vertex array in number of floats (for a single array) inline size_t size() const { return vertex_size; } - /// index to the top of the stack + /// number of allocated floats inline size_t index() const { return vertex_index; |