I figured out how to use Apples Instruments for performance analysis in JPScore. It seems we have one major issue while our simulation runs. About 97% of the whole runtime is spend computing our next time step in our force model which is not unexpected. However one thing is really interesting. The method call bool isVisible = building->ped_is_visible(p1, p2, false); consumes about 73%. Looking into this method shows that the huge runtime comes from one line of code if(sub->IsVisible(p1,p2,considerHlines)==false) return false; which still consumes about 67%.
what can we do to optimize this? @kemloh @chraibi
edit: i did some improvements in our code, here is the runtime result:
before: Testing started on 2015-01-23 19:00:05
Site Name: Workspace Build Name: linux-gcc-zam Total time: 1h 57m 25s 500ms
after: Testing started on 2015-01-24 19:00:17
Site Name: Workspace Build Name: linux-gcc-zam Total time: 1h 23m 49s 820ms
maybe we can add some further improvements with omp or something to get closer to our real time evacuation ;)