# HG changeset patch # User John Tsiombikas # Date 1435286018 -10800 # Node ID 464c45a0bc24c255f40f9dadb31e19775c711d01 # Parent f1ecc24398025f1a5ae493d50ddc1b341b965b70 mesgen stats diff -r f1ecc2439802 -r 464c45a0bc24 src/board.cc --- a/src/board.cc Fri Jun 26 05:23:46 2015 +0300 +++ b/src/board.cc Fri Jun 26 05:33:38 2015 +0300 @@ -183,6 +183,15 @@ obj.push_back(dbgobj); */ + // meshgen stats + printf("Generated board:\n %u meshes\n", (unsigned int)obj.size()); + unsigned int polycount = 0; + for(size_t i=0; iget_mesh(); + polycount += m->get_poly_count(); + } + printf(" %u polygons\n", polycount); + return true; } @@ -249,7 +258,7 @@ static const Vector3 wcol2 = Vector3(0.53, 0.32, 0.1); static const Vector3 wcol3 = Vector3(0.38, 0.25, 0.08); - img_field.create(512, 1024); + img_field.create(1024, 1024); unsigned char *pptr = img_field.pixels; for(int i=0; i