Poor performance when drawing a Polyline in an Eclipse View [message #714806] |
Thu, 11 August 2011 10:29  |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11631 seconds