Page 1 of 1

Manual Mesh Generation Performance

Posted: Thu Jun 04, 2015 12:11 pm
by Anthea
I wonder what the performance of the generation of a custom mesh compared to ManualObject is? In my scenario I have ~100 meshes (~20 000 triangles and 45 000 vertices) that are generated at runtime. Currently I generate them like that:

Code: Select all

manual->begin("Examples/SphereMappedRustySteel", Ogre::RenderOperation::OT_TRIANGLE_LIST);

	for (int i = 0; i < iso.mVertices.size(); i++)

	for (int i = 0; i < mTriangles.size(); i++)
		int* tri =;
		manual->triangle(tri[0], tri[1], tri[2]);

Does it make sense to implement it like in the wiki?
I am thankfull for any idea to speed that up :)