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>2009-08-16 21:23:47 +0000
committerStijn Buys <ingar@osirion.org>2009-08-16 21:23:47 +0000
commit80aaacbaef16b4eba33428aec268f80e7466cbb1 (patch)
treef157011d8e97d490ec3a9b0e8b28980f091de87b /src/model/model.cc
parentd763e294f44eb38b94bf7e2055b77a982b72b7c0 (diff)
minor cleanups, corrected map widget
Diffstat (limited to 'src/model/model.cc')
-rw-r--r--src/model/model.cc16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/model/model.cc b/src/model/model.cc
index 3f0b00b..2b3ec7a 100644
--- a/src/model/model.cc
+++ b/src/model/model.cc
@@ -151,8 +151,8 @@ void Model::list_model(Model *model)
}
con_print << " " << model->name() << " " << frags << " frags " <<
- model->model_tris_count << "/" << model->model_tris_detail_count << " tris/detail " <<
- model->model_quad_count << "/" << model->model_quad_detail_count << " quads/detail" << std::endl;
+ model->model_tris_detail_count << "/" << model->model_tris_count << " detail/tris " <<
+ model->model_quad_detail_count << "/" << model->model_quad_count << " detail/quads" << std::endl;
}
void Model::list()
@@ -163,9 +163,15 @@ 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() * 4 *sizeof(float) / (1024*1024) << "Mb used" << std::endl;
+ if (VertexArray::instance()) {
+
+ con_print << "vertex array "
+ << VertexArray::instance()->index() * 3 * sizeof(float) / (1024*1024) << "/"
+ << VertexArray::instance()->size() * 3 * sizeof(float) / (1024*1024) << "Mb "
+ << VertexArray::instance()->index() / 3 << "/" << VertexArray::instance()->size() / 3 << " verts "
+ << (VertexArray::instance()->index() * 100 / VertexArray::instance()->size())<< "% used"
+ << std::endl;
+ }
}
}