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.) -- Matthew Mueller donut at dakotacom dot net