[freespace2] Weird behaviour with FS2 CVS Apr 22, 2003

Taylor Richards mtrs at bellsouth.net
Tue Apr 29 06:57:57 EDT 2003


I posted a patch earlier that seams to fix this.  The basic deal is that
the game will sleep in order to keep the framerate capped at 120fps. 
The problem is that it's locking the thread and making it slow.  The fix
is to change line 38 of src/platform/unix.cpp from:
     usleep (mili * 1000);
to:
     SDL_Delay( long(mili) );

If that doesn't work for you let me know.


Taylor

On Tue, 2003-04-29 at 03:03, Michael.Wagener at materna.de wrote:
> I am getting weird results when running FS2 CVS as of April 22.
> The frame counter shows a constant 120 FPS but the game runs as
> if someone slowed down the clock from time to time. The mission
> timer runs as normal and timed events occur when this timer
> shows the appropriate time. But more time has passed in "real
> life". This problem does not occur constantly but is switched
> on and off somehow. I can reproduce the problem when I display
> the ulysses fighter in the tech room. After some turns in slows
> down its spinning and speeds it up after some more turns.
> 
> Since I already have run FS2 without this problem I recovered
> an old CVS snapshot as of July 22, 2002 and recompiled that. This
> snapshot does not have the described problem. This version however
> does not show a constant 120FPS but varies somewhere between 85
> and 100 FPS.
> 
> I am using Debian "SID" (gcc 3.2.2), SDL 1.2.4, openal CVS Jan 13,
> 2003 and the Nvidia binary GL driver version 41.91.
> 
> Regards,
> Mike
-- 
Taylor Richards <mtrs at bellsouth.net>




More information about the freespace2 mailing list