HI Alexander,

The real answer in this case is a thorough clean-up of the gt-swing
module which has begun with the recent changes to improve JMapPane's
performance that were included in GeoTools version 2.7.1.
Unfortunately these changes also broke the flying saucer demo. At the
same time new classes are being gradually introduced into the
gt-render module, including a DirectLayer class for drawing
user-specified content (although some animations will still be better
handled by sub-classing JMapPane).

Swing actually uses double-buffering by default while JMapPane, by
drawing into an intermediate image, is effectively triple-buffering.
The problem is that it is doing it very badly due to me not knowing
enough about Swing when I wrote the existing code.

Michael


On 22 May 2011 20:50, Alexander Dymchishin <[email protected]> wrote:
> Hello, I passed Quickstart, StyleLab, SelectionLab, and also tried
> FlyingSaucer demo, but the image was flashing. I know, that I am not the
> only one, who has the same problem, furthermore, I know that answer is
> double buffering, but how should I apply it? In which class and in which
> place? Yes, there are many examples in the internet, but they all solve
> highly specialized set of problems, such as draw what I know to draw, e.g.
> line(0,0,100,100)...
>
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Double-buffering-bufferstrategy-etc-tp6391216p6391216.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its
> next-generation tools to help Windows* and Linux* C/C++ and Fortran
> developers boost performance applications - including clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to