Am 2012-09-20 11:30, schrieb James Turner:
> (Moving this discussion the the mailing list!)
> 
> On 20 Sep 2012, at 10:24, Stuart Buchanan wrote:
> 
>> One thing I noticed is that the performance has taken quite a hit from
>> adding the taxiways, as each taxiway segment is being drawn as a
>> separate object.  Thomas - any chance we could have a draw mode to
>> allow a set of Quads to be defined?
> 
> Right, don't forget we can build Canvas elements from C++ - we could have 
> helper methods on the Nasal API which create a map layer automatically from 
> an ICAO code. I may end up doing this for the route-path in the map widget, 
> depending on performance.

I don't think that Nasal is the bottleneck here, but I'll check it. I
think that most time is spend with tessellation of the path but I'm also
not sure about this one.

Drawing multiple quads at once should be possible if putting all quads
in a single path (Start a new subpath/quad use canvas.Path.moveTo() or
canvas.Path.VG_MOVE_TO). I'll have a look if ShivaVG really creates just
a list of quads and otherwise modify it to do so.

If you need an aircraft symbol, eg. for showing the currently selected
position have a look at my fgdata branch:

https://gitorious.org/~tomprogs/fg/toms-fgdata/blobs/canvas/gui/dialogs/images/icon-aircraft.svg
https://gitorious.org/~tomprogs/fg/toms-fgdata/blobs/canvas/gui/dialogs/map-canvas.xml#line234
It's looking really good, if we/I/Thomas could get panning and ideally
smooth mouse-wheel zooming working, it would be fantastic. (And will
make my life porting the MapWidget really easy)

> It's looking really good, if we/I/Thomas could get panning and ideally
smooth mouse-wheel zooming working, it would be fantastic. (And will
make my life porting the MapWidget really easy)

That should be very easy to implement. I think I can do it the next days.

Tom

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
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