| version 1.26 | | version 1.27 |
|---|
| | |
| * Game loop for Inferno | | * Game loop for Inferno |
| * | | * |
| * $Log$ | | * $Log$ |
| | | * Revision 1.27 2002/04/24 05:49:59 donut |
| | | * fix last commit |
| | | * |
| * Revision 1.26 2001/07/27 19:45:04 donut | | * Revision 1.26 2001/07/27 19:45:04 donut |
| * gcc 3.0 compile fixes | | * gcc 3.0 compile fixes |
| * | | * |
| | |
| #endif | | #endif |
| | | |
| //new maxfps code, doesn't delay unless the frametime is actually less than the minimum, not much difference normally, but can improve performance with -nicefps a lot. -Matt Mueller | | //new maxfps code, doesn't delay unless the frametime is actually less than the minimum, not much difference normally, but can improve performance with -nicefps a lot. -Matt Mueller |
| do { | | // do { |
| timer_value = timer_get_fixed_seconds(); | | timer_value = timer_get_fixed_seconds(); |
| FrameTime = timer_value - last_timer_value; | | FrameTime = timer_value - last_timer_value; |
| if (use_nice_fps && FrameTime<F1_0/maxfps) | | // if (use_nice_fps && FrameTime<F1_0/maxfps) |
| d_delay(1); | | // d_delay(1); |
| }while (FrameTime<F1_0/maxfps); | | // }while (FrameTime<F1_0/maxfps); |
| | | |
| #if defined(TIMER_TEST) && !defined(NDEBUG) | | #if defined(TIMER_TEST) && !defined(NDEBUG) |
| _timer_value = timer_value; | | _timer_value = timer_value; |