[Xprint] Re: Improving glXSwapBuffers performace

Roland Mainz roland.mainz at nrubsig.org
Wed Apr 13 03:12:48 EDT 2005


Roland Mainz wrote:
[snip]
> > > The PsPutImage() function is an internal server function in the Xprint
> > > module.  I have no idea why that would be getting called.
> >
> > I've just had a look at the code and did some modifications which
> > improve the performance a lot - its now almost twice as fast.
> 
> I am looking into the patch right now... the performance increment isn't
> that surprising as you have elimited some
> |sprintf()|/|strlen()|/|strcat()| or replaced it with less heavy code.
> And you removed the |ferror()| call which likely saves a couple of
> syscalls, too.
> 
> > Can
> > anyone pls look at the patch, make sure its correct and then apply it?
> 
> Yes, I'll do that. I filed
> https://bugs.freedesktop.org/show_bug.cgi?id=3001
> ("|glXSwapBuffers()|/|XPutImage()| are slow") to track the further
> progress...
> ... thank you very much for the patch! :)

Just for the log: I've checked the patch in a few secs ago.

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)
-------------- next part --------------
An embedded message was scrubbed...
From: Roland Mainz <xorg-commit at cvs.freedesktop.org>
Subject: CVS Update: xc (branch: trunk)
Date: Tue, 12 Apr 2005 17:05:37 -0700 (PDT)
Size: 2840
Url: http://mozdev.org/pipermail/xprint/attachments/20050413/438905db/attachment.eml


More information about the Xprint mailing list