Commit 701f9b28 authored by Thomas Pitiot 's avatar Thomas Pitiot

timing testé sur particules avec facecenter et volumecenter, perf x10 :)

parent 26ed1ddb
......@@ -728,34 +728,40 @@ bool EnvMap::subdivideVolume(Dart dglobal, bool OneLevelDifference)
std::chrono::duration<double> duration_particules;
std::chrono::time_point<std::chrono::system_clock> start_particule, stop_particule;
//same for triangles //
for (Triangle * o : oldTrian)
{
start_particule= std::chrono::system_clock::now();
resetPartSubdiv(o);
stop_particule= std::chrono::system_clock::now();
duration_particules+=stop_particule-start_particule;
this->FirstRegistrationTriangle(o) ;
}
const std::chrono::time_point<std::chrono::system_clock> endPushTriangle = std::chrono::system_clock::now();
//same for obstacles contained
for (Segment * o : oldobst)
{
start_particule= std::chrono::system_clock::now();
resetPartSubdiv(o);
stop_particule= std::chrono::system_clock::now();
duration_particules+=stop_particule-start_particule;
FirstRegistrationSegment(o);
}
// CGoGNout << "particules duration : " << duration_particules.count() << "s "<<CGoGNendl;
const std::chrono::time_point<std::chrono::system_clock> endPush = std::chrono::system_clock::now();
duration_push = endPush - startPush;
std::chrono::duration<double> duration_triangle= (endPushTriangle -endPushNeighbors );
std::chrono::duration<double> duration_segment= (endPush - endPushTriangle);
std::chrono::duration<double> duration_neighbors= (endPushNeighbors - startPush );
if(duration_triangle.count()>0.01)CGoGNout << "push triangle duration : " << duration_triangle.count() << "s\n";
if(duration_push.count()>0.01)CGoGNout << "push duration : " << duration_push.count() << "\n dont pour les segments présents : "<<duration_segment.count() <<"s\n et pour les voisins :"<<duration_neighbors.count() <<"s\n";
if(duration_triangle.count()>0.03)CGoGNout << "push triangle duration : " << duration_triangle.count() << "s\n";
if(duration_push.count()>0.03)CGoGNout << "push duration : " << duration_push.count() << "\n dont pour les segments présents : "<<duration_segment.count() <<"s\n et pour les voisins :"<<duration_neighbors.count() <<"s\n";
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment