[Bf-committers] unlimited clay - Arch questions

Raul Fernandez Hernandez raulf at info.upr.edu.cu
Mon Jun 14 16:38:57 CEST 2010


Hi all

This weekend I have made several performance tests and the bottleneck are
in this functions:

make_editMesh()
load_editMesh()
free_editMesh()
BLI_pbvh_build_mesh()

those are the more time consuming parts
 I will try to move outside the make_editMesh() and free_editMesh() if I
find a way to update the editMesh selection based on the mesh selected
verts, that is, like in the Edit mode, when the object enters sculpt mode
it could create the EditMesh structure, that will be updated in each step
(and not created/deleted) I just need to translate the base mesh selected
verts to the EditMesh verts.  this step could save lot of time.

 The remaining bottleneck will be load_editMesh() , for update the base
mesh from the editMesh, this step should be performed on each stroke, I
don't know other variant to update the base mesh than this. Is there any?
 and the BLI_pbvh_build_mesh() that hopefully will be tractable thanks to
Nicholas advices.

And more important: is there a way to modify/update/add/remove the base
mesh without call or construct an EditMesh? that way we could skip the
load_editMesh() call and get an instant update and a big speed gain, if
those conditions could be met I think we could achieve production ready
speeds in realtime unlimited clay.

                   thanks in advance    Raul



More information about the Bf-committers mailing list