New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hillshade renderer speed improvements #7411
Conversation
While working on OpenCL stuff I've got an advice from Nyall and Even regarding some speed improvement used by GDAL DEM, and here they are. According to my measurements the speed gain is roughly: + 20% for unidirectional + 70% for multi directional
@@ -264,6 +304,13 @@ QgsRasterBlock *QgsHillshadeRenderer::block( int bandNo, const QgsRectangle &ext | |||
} | |||
} | |||
|
|||
#ifdef QGISDEBUG | |||
QgsMessageLog::logMessage( QStringLiteral( "CPU Rendering time for hillshade (%2 x %3 ): %4 ms" ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably also depend on the rendering debug option being enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m-kuhn do you mean settings.value( QStringLiteral( "Map/logCanvasRefreshEvent" ), false ).toBool()
?
Nice! |
@nirvn - let's move that discussion out of this PR. It's not related so shouldn't hold back this one. |
@nyalldawson , sounds good. |
This reverts commit 0ac35a6.
While working on OpenCL stuff I've got an advice
from Nyall and Even regarding some speed improvement
used by GDAL DEM, and here they are.
According to my measurements the speed gain is roughly: