-
-
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
avoid useless canvas redraws #12656
Comments
Author Name: Paolo Cavallini (@pcav) Does enabling cache improve this significantly? |
Author Name: aperi2007 - (aperi2007 -) I do some tests. If I checked the "use cache render" this don't happened. It don't happened even if I deselect the "use cache render", but set In effect it seem happened only when this settings is set to some number other than zero. Infact I usually use as settings 3000 or 5000 features because I have postres with Now I test better with the use of caching. Replying to [comment:1 pcav]:
|
Author Name: Volker Fröhlich (@volter) Can't see that happen at all using Trunk on Linux -- with or without rendering cache. Can you test with Trunk? |
Author Name: Giovanni Manghi (@gioman) I'm able to see what Andrea is saying. *) With render caching enabled, then the "number of features to be drawn before updating the display" does not work anymore. If you refresh the map the vector will be rendered as if the option is set to "0", so I guess that it would be needed to disabled this option when the render caching is enabled. *) With the render caching is disabled and you choose something different from "0" in "number of features to be drawn before updating the display" (and you are using a vector with many features, I'm testing myself a 50000 polygons vector) then the problem is evident. Add another (small) vector and then start enabling/disabling it in the TOC, the big vector is continuously redrawn at each click... very annoying. In general without render caching enabled (and "number of features to be drawn before updating the display" set to 0), enabling/disabling a vector in a project where there are many others vectors, or a few big ones, it takes really a lot. I'm on trunk/ubuntu 10,04 and with the render caching enabled, on the contrary, it works really smooth. It the options enabled by default? |
Author Name: Giovanni Manghi (@gioman) Now I can see even better: have a look at the following screencast: http://www.faunalia.pt/downlaods/redrawns.mpeg the vectors seems to be redrawn TWICE when toggling editing and it is even redrawn when clicking "Ok" or "apply" in QGIS menus. |
Author Name: Giovanni Manghi (@gioman) sorry wrong link |
Author Name: Volker Fröhlich (@volter) Thank you, can see it now. |
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Giovanni Manghi (@gioman) Another useless redraw is when clicking "OK" after having clicked on "APPLY", for example in vector or raster properties.
|
Author Name: Giovanni Manghi (@gioman) another useless redraw: when the identify window is set to be opened docked but it is not (yet) visible: picking the identify tool (or any other one) causes the canvas to be refreshed. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) Another huge waste of time: in a project add a group of layers plus other layers and some kind of overlay. I tested with a bunch of PostGIS layers, some of them grouped and a WMS overlay. When removing the group it seems that the canvas is redrawn as many times as the number of layers in the group being removed. |
Author Name: Giovanni Manghi (@gioman) Another useless redraws (from #14644): If I open the Add PostGIS layer dialog and do nothing, just hit Close, the whole view re-renders. This causes needless CPU usage and delays when no re-render was needed.
|
Author Name: Aren Cambre (Aren Cambre) If I do anything that causes the Identify Results dock to appear, such as clicking on the Identify Features or Select single feature buttons, the entire canvas redraws. Seems like a pointless redraw since the dock, in my case, does not change the canvas dimensions when it opens; it just encroaches on the Layers dock. If I close the Identify Results dock, there's no redraw, but it happens again if I click on one of those buttons. (from #14853) |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Regis Haubourg (@haubourg) Another useless redraw: Data is redrawn twice if "option/rendering/feature of feature to draw before updating the display " is set to something different than 0. Not good since this option is really nice to let user be patient for huge datasets, he has to be twice more patient ;-) |
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Matthias Kuhn (@m-kuhn) Can this topic be closed since MT rendering is implemented?
|
Author Name: Giovanni Manghi (@gioman) Matthias Kuhn wrote:
I see your point, because of MTR the canvas does not block anymore, then a canvas redraw is harmless. I would say that I agree, but useless redraws can still hurt when layers are big (millions of features) and/or projects complex. I guess that this ticket was too general from the beginning, and we should close this in favor of keeping specific ones like:
|
Author Name: Giovanni Manghi (@gioman) closing in favor of tickets for specific cases.
|
Author Name: aperi2007 - (aperi2007 -)
Original Redmine Issue: 2596
Affected QGIS version: master
Redmine category:map_canvas
Starting with a layer switch-on, if the layer is switch-off.
The canvas is redraw one time again with the layer switch-on before draw the canvas without the layer.
This is time consuming action if the layer switched-off is a big archive with a large extent.
Related issue(s): #14853 (relates)
Redmine related issue(s): 5087
The text was updated successfully, but these errors were encountered: