Manual Mesh Generation Performance

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
Posts: 25
Joined: Tue Oct 28, 2014 1:03 pm

Manual Mesh Generation Performance

Post 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 :)

Post Reply