Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF & Draw2D on Linux/GTK
GEF & Draw2D on Linux/GTK [message #170837] Mon, 07 March 2005 23:03 Go to next message
Mark Powell is currently offline Mark PowellFriend
Messages: 14
Registered: July 2009
Junior Member
Anyone developing a GEF-based or Draw2D-based application on Linux/GTK?
I am, and the performance on Windows is much, much better than on Linux.
I've noticed when working with ImageFigures in a ScrollPane, for example.

I'm in the process of writing up a self-contained example to reproduce what
I'm
talking about somewhat ambiguously, but in the meantime I just wanted to see
how
many of you who frequent the newsgroups are on this platform and what your
experience
has been like.

Thanks,
Mark Powell

--
(My correspondence does not reflect the opinions of the Jet Propulsion
Laboratory, NASA, or Caltech, etc., etc.)
Re: GEF & Draw2D on Linux/GTK [message #170862 is a reply to message #170837] Tue, 08 March 2005 03:52 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Performance in what regards? I'm assuming you're comparing equivalent
set-ups here (in terms of processing power, ram, resource, etc.).

I don't think we're doing anything OS-specific in this case. So, if you're
noticing a difference, it's most likely because of something in SWT. Check
to see if you can reproduce the problem with an SWT-only snippet.

"Mark Powell" <Mark.Powell@jpl.nasa.gov> wrote in message
news:d0imku$s7t$1@www.eclipse.org...
> Anyone developing a GEF-based or Draw2D-based application on Linux/GTK?
> I am, and the performance on Windows is much, much better than on Linux.
> I've noticed when working with ImageFigures in a ScrollPane, for example.
>
> I'm in the process of writing up a self-contained example to reproduce
> what I'm
> talking about somewhat ambiguously, but in the meantime I just wanted to
> see how
> many of you who frequent the newsgroups are on this platform and what your
> experience
> has been like.
>
> Thanks,
> Mark Powell
>
> --
> (My correspondence does not reflect the opinions of the Jet Propulsion
> Laboratory, NASA, or Caltech, etc., etc.)
>
Re: GEF & Draw2D on Linux/GTK [message #170870 is a reply to message #170837] Tue, 08 March 2005 03:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Couldn't you say the same thing about native GTK applications? How does
resizing a large website in firebird compare on both platforms?
Re: GEF & Draw2D on Linux/GTK [message #171074 is a reply to message #170862] Wed, 09 March 2005 01:23 Go to previous messageGo to next message
Mark Powell is currently offline Mark PowellFriend
Messages: 14
Registered: July 2009
Junior Member
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d0j7ej$1vk$1@www.eclipse.org...
> Performance in what regards? I'm assuming you're comparing equivalent
> set-ups here (in terms of processing power, ram, resource, etc.).

It appears (on the surface at least) to be image rendering performance that
is far different between Windows and Linux/GTK. The time it takes to render
a newly-exposed area in a ScrollPane filled with ImageFigures is noticeably
slower when running on GTK. The time it takes to render an newly-exposed
ImageFigure when using the GC.drawImage(sourceRect, destRect) where
sourceRect != destRect (i.e. it has the rescale the image before rendering)
is _way_ slower. On the surface at least, it looks like these issues have
more to do with SWT and probably even more with GTK than anything that is
attributable to Draw2D.

I will code up standalone snippet to reproduce this behavior and file the
code with Bugzilla issues for use in performance profiling and enhancement.

The comparison tests I have done so far are with a 2.1 Ghz Windows laptop
with 1GB of RAM versus a dual 2.0 Ghz Linux/GTK workstation with 2GB of RAM.
More powerful computer running Linux, worse performance than Windows.

>
> I don't think we're doing anything OS-specific in this case. So, if
> you're noticing a difference, it's most likely because of something in
> SWT. Check to see if you can reproduce the problem with an SWT-only
> snippet.

I am certain you are right about that, having looked at the source (yay,
open source!). Nothing OS-specific going on here in Draw2D. I'll raise my
points with the SWT team developers who are currently focusing on GTK
optimization and write snippets for them that they can use.

Mark
Re: GEF & Draw2D on Linux/GTK [message #172243 is a reply to message #171074] Thu, 17 March 2005 04:29 Go to previous message
Mark Powell is currently offline Mark PowellFriend
Messages: 14
Registered: July 2009
Junior Member
I submitted examples that demonstrate the performance differences on
Linux/GTK vs. Windows to Bugzilla:

Bug #87577 is an SWT snippet
Bug #88227 is a Draw2D "snippet" that demonstrate some similar performance
differences, whether they completely in SWT or whether there is possible
optimization that can be done in the Draw2D layer is TBD.

Mark
Previous Topic:Draw figure differently depending on state
Next Topic:ScrollPane behavior and API: trying to understand
Goto Forum:
  


Current Time: Fri Apr 26 10:57:16 GMT 2024

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

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

Back to the top