Module twilight: Change committed

warp at icculus.org warp at icculus.org
Thu Jul 31 09:08:40 EDT 2003


Commiter   : warp
CVSROOT    : /cvs/cvsroot/twilight
Module     : twilight
Commit time: 2003-07-31 13:08:40 UTC

Log message:

The 'well THAT needs fixing!' commit.

Plug two rather sizable file descriptor leaks.

Change the qw client 'going too fast' checking to waste /far/ less CPU
time, this will at best be seen as being able to do more on a client
that can easily manage the requested FPS.
(Quite possibly making the framerate more stable!)

Add show_fps 2, which adds two numbers to the FPS counter, the first is
the number of times this frame we have spent looping because we are
running too fast.  The second is the number of times we have used
SDL_Delay to avoid wasting CPU time while we spin, due to going too
fast.

Ideally, on a really fast system, the FPS counter should show the
requested FPS, and the second number should be 1, with the first number
being very low.

Modified files:
     src/fs/dir_posix.c src/image/image.c src/image/sdlimage.c
     src/qw/cl_main.c src/qw/gl_screen.c
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: twilight.20030731.130840.warp.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20030731/64627fc7/attachment.diff>


More information about the twilight-commits mailing list