[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] performance of 2D-Drawing

Hi There,

I'm implementing an application based on eclipse-RCP which central part (the editor) is a 2D graphic. It consists mainly of polygons and lines on different layers. There can be lots of them (elements) - perhaps you could compare it to a 2D-Drawing program. It also contains a "Zoom-Feature" plus scrolling when zoomed.

Now I'm getting to performance problems. I tried a lot of things, Multi-buffering (for the layers), reducing the painted objects to the current visible part, using different styles for the canvas ... and succeeded in getting more performance. But its not enough :-(
Especially on MacOS the displaying is quite un-smooth.


Now I wonder if i would get more performance in porting the painting-part to AWT-Canvas with using of Java2D. But that would be a lot of work. The use of OpenGL would also be an option - although im not sure if OpenGL and 2D painting fit together.

Perhaps someone can give me a hint which combination would be the most performant?
(Platforms: MacOS, win32 and Linux)


Thanks,
Karsten