Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/model/model.cc4
-rw-r--r--src/model/vertexarray.h4
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;