-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Smarter Map Redraws [grant 2020] #40960
Conversation
…ached layer image before the new rendering is done
This makes me want to improve expression evaluation... |
@PeterPetrik |
actually removed the |
Ok, that's certainly MUCH nicer now! Great stuff! A few suggestions:
|
A HUGE thank you for this! This makes qgis feel so much better for me! |
Best to thanks to QGIS grant scheme and all the QGIS sponsors :) |
qgis/QGIS-Enhancement-Proposals#181
SIMULATE_SLOW_RENDERER
, line 338, you can uncomment it to force very slow renderers (for testing)general overview of the implementation: The
QgsMapLayerRenderer
has flagmReadyToCompose
. To use the "smart map redraws" for the particular renderer, the flag must be set tofalse
in the constructor and set totrue
once there is something to show to user (so the renderer actually drawn some data to resulting/destination image already). The rule now is that whenever the flag is set tofalse
, the rendering job tries to fetch the cached image from theQgsMapRenderingCache
for particular layer and transform it to the current drawn extent instead of showing QImage with all transparent pixelsWork funded by QGIS grant 2020.