Skip to content

Commit

Permalink
Even faster 2d point cloud rendering by disabling unnecessary antiali…
Browse files Browse the repository at this point in the history
…asing flag

This thing seriously flies now!
  • Loading branch information
nyalldawson committed Dec 1, 2020
1 parent f68e3ae commit 47a6e36
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/pointcloud/qgspointcloudlayerrenderer.cpp
Expand Up @@ -80,6 +80,8 @@ bool QgsPointCloudLayerRenderer::render()

QgsScopedQPainterState painterState( painter );
context.renderContext().setPainterFlagsUsingContext( painter );
// for point clouds we always disable antialiasing -- it's not critical here and we benefit from the performance boost disabling it gives
context.renderContext().painter()->setRenderHint( QPainter::Antialiasing, false );

QgsPointCloudDataBounds db;

Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 47a6e36

Please sign in to comment.