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

Re: any NWN users here? mouse lag problem



Am Freitag, 4. März 2005 04:18 schrieb Matthew Mueller:
On Fri, Mar 04, 2005 at 03:57:12AM +0100, Malte Cornils wrote:
Am Donnerstag, 3. März 2005 18:06 schrieb Michel Dänzer:
On Wed, 2005-03-02 at 23:46 -0500, Michel Dänzer wrote:
On Wed, 2005-03-02 at 23:53 +0100, Robert Fendt wrote:
If there's a way to make NWN call glFinish() before glXSwapBuffers()
(I don't know if there is), that might help.

I'm not sure how to force the OpenGL magic you refer to in your first
hint. Is there a way to do this for closed-source applications
(LD_PRELOAD tricks etc)?

LD_PRELOAD should do it.  I happen to have an existing library that
could be trivially modified for testing this.  Grab libglfps v0.1 from
http://www.dakotacom.net/~donut/programs/libglfps_s.html and edit
src/glfps.c, insert the glFinish() before the call to
real_glXSwapBuffers and you should be good to go.  (You could comment
out the update_fps call if you want, although leaving it in would be an
easy way to verify that the library is actually being used.)

Way cool - it works. Great!

Now what would be the best course of action - contacting the game vendors to 
put a glFinish() at the correct spot or contacting ATI to work around the 
problem in their drivers?

-Malte