Skip to content
Browse files
Add goupSize explanation
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Apr 8, 2021
1 parent a297d84 commit 93804a0884cd00fd3af6c8766bf2262a2772acf0
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/pointcloud/qgspointcloudlayerrenderer.cpp
@@ -239,6 +239,10 @@ int QgsPointCloudLayerRenderer::renderNodesAsync( const QVector<IndexedPointClou
QElapsedTimer downloadTimer;

// Instead of loading all point blocks in parallel and then rendering the one by one,
// we split the processing into groups of size groupSize where we load the blocks of the group
// in parallel and then render the group's blocks sequentially.
// This way helps QGIS stay responsive if the nodes vector size is big
const int groupSize = 4;
for ( int groupIndex = 0; groupIndex < nodes.size(); groupIndex += groupSize )

0 comments on commit 93804a0

Please sign in to comment.