Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Performance issue on redundant painting of fully covered figures
Performance issue on redundant painting of fully covered figures [message #654581] Wed, 16 February 2011 11:56
Thomas Beyer is currently offline Thomas BeyerFriend
Messages: 93
Registered: July 2009
Hello community,

I am running into performance issues with large scaled diagrams.
I have developed a visual editor for describing human machine interfaces
with GMF.
I have made marginal adaptions to GMF'ss ShapeCompartmentFigure and
Draw2DSs FreeformViewport to allow a child figure to fully cover (not
overlap) a compartment figure. shows the resulting diagram.
The tabs are also ImageFigures and created via screen scraping in
java-swing. The diagram inside the lightblue figure is some screenshot,
shown via the Draw2Ds ImageFigure. It shall demonstrate, that the
figures must be able to hold images. shows, the Fragment
"SubEntity" actually fully covers Fragment "SubEntity 2".

The example is very simple. The uses cases of my clients require quiet a
lot more fully covered/ing elements than in the example over more than
one hierarchy-level.
In the end, the editor holds - lets say - 200 elements within a
hierarchy, however only 20 are actually seen within the editor, because
they are in front. The other 180 are fully covered in the background.
They can of course be brought to front via the zorder-commands.

After digging into the code, I realized, that the entire 200 elements
get painted all the time (implementation of Draw2D's figure), when
updates occur. Working within the editor actually causes shiver when
scrolling due to the painting jobs. For my clients this is an
unacceptable performance problem.

Is there a way, that I can tell the editor or the figure hierarchy
itself to only paint what really is in front and skip covered figures?
It seems very ineffective to paint the figure hierarchy from the element
in the backmost position to the elements in the front while painting
over the same regions a lot of times.

I don't want to make use of transparency, so all my figures are opaque.

Any help or suggestions is very much appreciated?

TIA & regards Thomas
Previous Topic:Linking question
Next Topic:Change source/target of a Connection
Goto Forum:

Current Time: Mon Apr 19 01:20:20 GMT 2021

Powered by FUDForum. Page generated in 0.01333 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top