discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep slowness while drawing


From: Fred Kiefer
Subject: Re: GNUstep slowness while drawing
Date: Wed, 30 Apr 2008 20:05:12 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080226)

Andreas Höschler wrote:
While preparing the stripped down application I figured out that this has nothing to do with event handling but is indeed a drawing problem. The stripped down version (subclass of NSView) worked perfectly also under GNUstep. My ObjectBrowserView was actually a subclass or NSImageView since I wanted to have a background image. :-) Now this NSImageView was setup with [_platformObject setImageScaling:NSScaleToFit]. This turned out to be the problem. After adding

#ifndef __APPLE__
- (void)setImageScaling:(NSImageScaling)image
{
   [super setImageScaling:NSScaleNone];
}
#endif

to my NSImageView subclass the performance problem was gone. Now I have a rather ugly blue frame around the image but I can at least reasonably select objects now which is much more important.

On MacOSX (10.2.8) I see no performance problem even with NSScaleToFit. However, I can live with this solution.


Could you please provide the image in question and the amount to which you are scaling it up or down (that is the cell size). That way I will be able to reproduce this problem. I expect that you are using the art backend on your usual Solaris machine. Could you please try it once with the xlib backend?

Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]