Hi again, 2 suggestions : - Do not use #if SDL_CONV, we can always use your code. - I wouldn't introduce 2 new separate files for the unique method doing the conversion, I would rather include it in the main class. After those changes, the patch can go in. Le dim, 21/03/2004 à 11:12 +0100, Stefan Bruens a écrit : > Hi all, > > I have found a big cpu eater in the fullscreen code of gnomemeeting, > SDL_DisplayFormat is really slow. I have created some code which converts the > image data and copies it directly to the SDL surface. This code is 4 to 6 > (depending on CPU type) times as fast as the existing code, so on my Duron > 700 cpu usage during fullscreen (qcif scaled to 640x480) goes down from 70% > to 35% (of which 10% are other processes). > > The code is tested on Linux x86 with display depth 16 and 32 bits, 24 bits > should work, too. There may be problems with big endian, but this should be > fixable easily. > > The code can be downloaded from > http://www.kawo1.rwth-aachen.de/~lurchi/gnomemeeting/conversion.tar.bz2 > > A graphic showing the difference can be found here: > http://www.kawo1.rwth-aachen.de/~lurchi/gnomemeeting/cpuload.png > > Greetings, > > Stefan > > -- > Stefan Brüns / Kastanienweg 6 - Zimmer 1206 / 52074 Aachen > mailto:lurch gmx li http://www.kawo1.rwth-aachen.de/~lurchi/ > phone: +49 241 169-4206 mobile: +49 160 7532733 -- _ Damien Sandras (o- //\ It-Optics s.a. v_/_ GnomeMeeting: http://www.gnomemeeting.org/ FOSDEM 2004: http://www.fosdem.org H.323 phone: callto:ils.seconix.com/dsandras seconix com
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=