Skip to content
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

Enable render caching where possible #12034

Closed
qgib opened this issue Oct 5, 2009 · 4 comments
Closed

Enable render caching where possible #12034

qgib opened this issue Oct 5, 2009 · 4 comments
Labels
Feature Request Map and Legend Related to map or legend rendering
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Oct 5, 2009

Author Name: Tim Sutton (Tim Sutton)
Original Redmine Issue: 1974

Redmine category:map_canvas
Assignee: Tim Sutton


User story 1:

Joe is reordering layers, each of which points back to a postgis database with thousands of records. Each time he drops a layer to a new position, he waits a long time while each layer redraws, even though the content of the layers is the same, just being rendered in a different order.

User story 2:

Jane is changing symbology in a layer. When she clicks apply, she waits a long time while all other layers redraw too.

User story 3:

Pete is hiding and showing layers. Each time he hides or shows a layer, he waits a long time while the layers redraw.


The solution to this is to provide some kind of caching mechanism. The attached patch is my first draft that addresses the above scenarios and makes QGIS much more responsive when engaged in the activities described.

Please note the patch is a work in progress and there are some edge cases where it does not yet behave well. In order to activate caching, tick the checkbox for this in the rendering tab of the options panel (its disabled by default).


@qgib
Copy link
Contributor Author

qgib commented Oct 22, 2009

Author Name: Tim Sutton (Tim Sutton)


Version 5 offers dramatically better performance now that I have changed it to use QImage rather than QPixmap. The last remaining task is to clear the cache images of non-visible layers when the extents change to prevent rendering anomalies when enabling display of a layer after a zoom operation.

@qgib
Copy link
Contributor Author

qgib commented Oct 22, 2009

Author Name: Tim Sutton (Tim Sutton)


  • status_id was changed from Open to In Progress

@qgib
Copy link
Contributor Author

qgib commented Oct 23, 2009

Author Name: Tim Sutton (Tim Sutton)


Version 6 of the patch is now quite usable and deals well with most issues I think. I will propose this patch for inclusion into trunk.

@qgib
Copy link
Contributor Author

qgib commented Oct 24, 2009

Author Name: Tim Sutton (Tim Sutton)


This patch is applied to trunk as of 763fbb2 (SVN r11832).


  • resolution was changed from to fixed
  • status_id was changed from In Progress to Closed

@qgib qgib added Feature Request Map and Legend Related to map or legend rendering labels May 24, 2019
@qgib qgib added this to the Version 1.4.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Map and Legend Related to map or legend rendering
Projects
None yet
Development

No branches or pull requests

1 participant