Hi list,

I am refreshing a SwtMapPane with relatively high frequencies, but the
renderings queue up quickly and my application gets exhausted (I get
renderings with centuries of delay).

To overcome this bottleneck I tried to trigger the rendering ---
SwtMapPane#handleEvent(Event) -- with a reduced-area #redraw call to the
SWT control.

While for some reason I still have to investigate, the effective result of
a reduced-area #redraw is actually what you expect to see (only the area
you asked for gets refreshed), the rendering seems to ignore the bounds of
the SWT.Paint event and still takes up all the resources of a full canvas
drawing.

Indeed in SwtMapPane#handleEvent I see the event bounds are ignored: the
full visible area is used (``curPaintArea = getVisibleRect();'').

Effectively reducing the rendering from the full client area of the pane to
the reduced area brings down the elapsed rendering time from 50-100 ms
(Intel i7) down to <10 ms.

In my mind, implementing this means using some reflection + essentially
calling #paint on the pane renderer with the reduced area & reduced AOI.

Anyone feels like giving an opinion or suggestion?

I am using a pretty old GT version (2.8, not even in SourceForge now... not
sure how they got it here): is/was this a known issue that was solved in a
later release? Am i just misunderstanding the whole thing an misusing the
API? :)

*Thanks*
-Piero
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to