Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
Kubuntu 19.10, debug build of Qt 5.13 latest
Description
While tuning painting performance of an application using Renderdoc, I noticed a SwipeView that keeps painting at least two of its three possible content items. Ideally it would only paint the two currently visible items while swiping between those two, and only the currently visible item while stationary on that item. The best that is currently possible is painting three out of arbitrarily many items, as explained in the documentation after " The following example presents how to use LoaderĀ to keep a maximum of three pages simultaneously instantiated".
In fact, unloading items as suggested in the documentation is unnecessary as far as painting is concerned. In the worst case, SlideView paints the current item plus the one or two adjacent items (one when current is beginning or end).
Attached is a small example. Just count and inspect the glDrawElements() calls in Renderdoc or a similar tool