/[adonthell]/adonthell-0.3/src/gametime.cc
ViewVC logotype

Diff of /adonthell-0.3/src/gametime.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by gnurou, Fri Jan 17 21:53:39 2003 UTC revision 1.14 by ksterker, Sat Apr 16 17:56:32 2005 UTC
# Line 62  void gametime::update () Line 62  void gametime::update ()
62          // if the mainloop was performed faster than one frame          // if the mainloop was performed faster than one frame
63          // should take, we sleep for the time remaining          // should take, we sleep for the time remaining
64          if (timer2 >= gfx_cycle_length) break;          if (timer2 >= gfx_cycle_length) break;
65          else SDL_Delay (3);          else SDL_Delay (50);
66      }      }
67            
68      timer1 = SDL_GetTicks () - (timer2 % CYCLE_LENGTH);      timer1 = SDL_GetTicks () - (timer2 % CYCLE_LENGTH);

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26