Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Poor performance when drawing a Polyline in an Eclipse View
Poor performance when drawing a Polyline in an Eclipse View [message #714806] Thu, 11 August 2011 10:29 Go to next message
joel.acevedo is currently offline joel.acevedo
Messages: 5
Registered: February 2010
Junior Member
I'm using GEF's Polyline figure to display an audio waveform in one of my Eclipse RCP application's view. I'm using a ScrollingGraphicalViewer and a ScalableFreeformRootEditPart as the root edit part. When the polyline has about 1 million points, the initial drawing and all repainting of the figure from there on, specially those caused by scrolling, get really slow. The polyline contains 1 million+ points but only about one thousand of them are displayed at a time.

I tried adding a ClippingStrategy to the parent of the Polyline, to explicitly clip the polyline to the section made visible by its parent FreeformViewport object. This approach didn't improve the drawing performance even when setting antialias to SWT.OFF on the Polyline object.

Do you or anyone in this forum have any suggestions for me? Could you please share how to efficiently display signals in an RCP application?

Any help will be greatly appreciated
Re: Poor performance when drawing a Polyline in an Eclipse View [message #715558 is a reply to message #714806] Sun, 14 August 2011 09:18 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Joel,

Add more memory and see what happens. Otherwise, try the gef group.

Regards,

Wim


> I'm using GEF's Polyline figure to display an audio waveform in one of my
Eclipse RCP application's view. I'm using a ScrollingGraphicalViewer and a
ScalableFreeformRootEditPart as the root edit part. When the polyline has
about 1 million points, the initial drawing and all repainting of the figure
from there on, specially those caused by scrolling, get really slow. The
polyline contains 1 million+ points but only about one thousand of them are
displayed at a time.
>
> I tried adding a ClippingStrategy to the parent of the Polyline, to
explicitly clip the polyline to the section made visible by its parent
FreeformViewport object. This approach didn't improve the drawing performance
even when setting antialias to SWT.OFF on the Polyline object.
>
> Do you or anyone in this forum have any suggestions for me? Could you
please share how to efficiently display signals in an RCP application?
>
> Any help will be greatly appreciated
Re: Poor performance when drawing a Polyline in an Eclipse View [message #715593 is a reply to message #715558] Sun, 14 August 2011 13:54 Go to previous messageGo to next message
joel.acevedo is currently offline joel.acevedo
Messages: 5
Registered: February 2010
Junior Member
Wim, Thanks for your response. I tried adding more memory and that didn't fix it. Could you please elaborate on your "GEF group" suggestion?

Thanks!
Re: Re: Poor performance when drawing a Polyline in an Eclipse View [message #716867 is a reply to message #715593] Thu, 18 August 2011 11:43 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Joel,

There is a special forum for gef: eclipse.tools.gef

Regards,

wim


> Wim, Thanks for your response. I tried adding more memory and that didn't
fix it. Could you please elaborate on your "GEF group" suggestion?
>
> Thanks!
Previous Topic:Could not create view
Next Topic:OS version specific plugin fragments
Goto Forum:
  


Current Time: Fri Aug 01 20:28:59 EDT 2014

Powered by FUDForum. Page generated in 0.01712 seconds