Am 2012-09-21 21:16, schrieb Stuart Buchanan:
> On Thu, Sep 20, 2012 at 11:44 PM, Thomas Geymayerwrote:
>> I've now changed the default fill rule from even-odd to non-zero. Should
>> probably work better now...
> 
> Surprisingly, this didn't seem to make any difference.  I've included
> the patch below
> if you want to check yourself.

The problem was that ShivaVG simply hasn't implemented it :) I've now
extended ShivaVG to support some kind of a non-zero fill rule. It's not
really non-zero because instead of incrementing and decrementing
depending on the orientation of the drawn overlapping regions it simply
checks if at least a single region covers a pixel. For our use cases it
should be enough tough.

I have also added some more performance improvements: Now the texture is
only redrawn if something has changed. So if you don't change the map
there shouldn't be any noticeable performance impact anymore.

Also the bounding boxes are now only written to the property tree if
they are recalculated. This should take some fair amount of changing
properties away.

With your changes to put everything into one object now zooming takes
much more time. Seems like now tessellating takes much longer than
before due to the amount of data in one single path.

The current problem with zooming is that every position of every path
gets recalculated with the updated projection, even though this isn't
really needed as the projection doesn't noticeably while just zooming
and scrolling around at a single airport. To improve this I want to
implement some kind of one-time projected path which after the initial
geographic projection only gets scaled and translated instead of
completely recalculated.

Tom

-- 
Thomas Geymayer  www.tomprogs.at / C-Forum und Tutorial: www.proggen.org
------------------------------------------------------------------------
      Student of Computer Science @ Graz University of Technology
------------------------------- Austria --------------------------------

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to