3D view: profile 3D view for performance when number of particles is large
|Status:||Resolved||Start date:||11 Jun 2018|
|Target version:||Sprint 38|
#4 Updated by pospelov over 2 years ago
- Status changed from Sprint to Resolved
Seems that the method RealSpaceBuilder::populateParticle() is one of the source of slow performance.
It is called in a tight loop (loop over lattice nodes, or over random particle distribution). And as far as I can judge,
it is always create same particle (with same materials) which is only placed differently.
At the end it boils down to operator==(QString, QString) and SessionItem::isTag.Proposed solution:
- Extract particle creation from RealSpaceBuilder::populateParticle() and move it outside of the loop.