Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4610 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc


Ignore:
Timestamp:
Jun 12, 2005, 11:48:07 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: 1. timestep different, now the game runs smoother on my laptop…. with this we have to play around some

  1. implemented PNode::abs-coor, rel-coor for loading
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4608 r4610  
    10251025      this->dt = currentFrame - this->lastFrame;
    10261026
    1027       if( this->dt > 0)
     1027      if( this->dt > 10)
    10281028        {
    10291029          float fps = 1000/dt;
     
    10391039          */
    10401040          PRINTF(2)("fps = 1000 - frame rate is adjusted\n");
    1041           SDL_Delay(10);
     1041          SDL_Delay(10-dt);
    10421042          this->dt = 10;
    10431043        }
Note: See TracChangeset for help on using the changeset viewer.