[kaffe] Re: kaffe image draw efficiency

2005-10-24 Thread Gianluca Moro
--- Clemens Eisserer [EMAIL PROTECTED] ha scritto: 

 Hi,
 
  I'm testing Kaffe 1.1.6 on a MIPS processor (AU1100, 400MHz)
  and I noted the image refresh is very slow: 10-20 seconds to
  draw the image whenever I move another window over it!
 
  I traced the code, and I see that the time is wasted in
  initScaledImage function in file
  libraries/clib/awt/X/img.c, fundamentally in the rescaling code.
  (if I draw the image without scaling it the timing is very good)
 
  Anyone found such a problem? is it correct that initScaleImage
  is called whenever the image comes to foreground? is there
  a way to optimize the scaling, or not to call initScaleImage
  so frequently?
 
  The 10-20 seconds pause is not acceptable in the final program :-(
 
 Was this with the GNU-Classpath AWT implementation (GTK based) or
 Kaffe's own X11 based implementation?
 Since there's a lot of ongoing work on Classpath's AWT I would
 recommend using it in favour of the X-lib solution, although its
 seriously under construction so from time to time things do not work
 as they should ;-)
 

It is compiled with kaffe own X11 implementation.
In my environment (embedded) I have not installed GTK,
as I should keep it small.

thanks
giammy




--
Gianluca Moro  http://groups.yahoo.com/group/embeddeditalia/
ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED
[EMAIL PROTECTED]   Visit http://ilpinguino.altervista.org/



___ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.messenger.yahoo.com

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Re: kaffe image draw efficiency

2005-10-24 Thread Rafael Teixeira
Not specific to kaffe, but I think it is good advice:

If possible, scale the image explicitly to another image buffer and
keep it cached to always refresh without scaling. Better yet to keep
memory usage and first time performance in good shape, se if you can
have the image already in the right size.

Regards,

Rafael Teixeira

On 10/24/05, Gianluca Moro [EMAIL PROTECTED] wrote:
 --- Clemens Eisserer [EMAIL PROTECTED] ha scritto:

  Hi,
 
   I'm testing Kaffe 1.1.6 on a MIPS processor (AU1100, 400MHz)
   and I noted the image refresh is very slow: 10-20 seconds to
   draw the image whenever I move another window over it!
  
   I traced the code, and I see that the time is wasted in
   initScaledImage function in file
   libraries/clib/awt/X/img.c, fundamentally in the rescaling code.
   (if I draw the image without scaling it the timing is very good)
  
   Anyone found such a problem? is it correct that initScaleImage
   is called whenever the image comes to foreground? is there
   a way to optimize the scaling, or not to call initScaleImage
   so frequently?
  
   The 10-20 seconds pause is not acceptable in the final program :-(
 
  Was this with the GNU-Classpath AWT implementation (GTK based) or
  Kaffe's own X11 based implementation?
  Since there's a lot of ongoing work on Classpath's AWT I would
  recommend using it in favour of the X-lib solution, although its
  seriously under construction so from time to time things do not work
  as they should ;-)
 

 It is compiled with kaffe own X11 implementation.
 In my environment (embedded) I have not installed GTK,
 as I should keep it small.

 thanks
 giammy

 --
 Gianluca Moro  http://groups.yahoo.com/group/embeddeditalia/
 ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED
 [EMAIL PROTECTED]   Visit http://ilpinguino.altervista.org/

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe