Changeset 4610 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Jun 12, 2005, 11:48:07 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4608 r4610 1025 1025 this->dt = currentFrame - this->lastFrame; 1026 1026 1027 if( this->dt > 0)1027 if( this->dt > 10) 1028 1028 { 1029 1029 float fps = 1000/dt; … … 1039 1039 */ 1040 1040 PRINTF(2)("fps = 1000 - frame rate is adjusted\n"); 1041 SDL_Delay(10 );1041 SDL_Delay(10-dt); 1042 1042 this->dt = 10; 1043 1043 }
Note: See TracChangeset
for help on using the changeset viewer.