Changeset 3205 for code/trunk/src/orxonox/gamestates
- Timestamp:
- Jun 22, 2009, 1:12:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSDedicated.cc
r3198 r3205 60 60 , timeSinceLastUpdate_(0) 61 61 , closeThread_(false) 62 , cleanLine_(true) 62 63 , inputIterator_(0) 63 , cleanLine_(true)64 64 , cursorX_(0) 65 65 , cursorY_(0) … … 117 117 else 118 118 { 119 usleep((unsigned int)((NETWORK_PERIOD - timeSinceLastUpdate_)*1000*1000));120 usleep(NETWORK_PERIOD*1000*1000); // NOTE: this is to throttle the non-network framerate119 msleep(static_cast<unsigned int>((NETWORK_PERIOD - timeSinceLastUpdate_)*1000)); 120 msleep(static_cast<unsigned int>(NETWORK_PERIOD*1000)); // NOTE: this is to throttle the non-network framerate 121 121 // COUT(0) << "sleeping for " << (int)((NETWORK_PERIOD - timeSinceLastUpdate_) * 1000 * 1000) << " usec" << endl; 122 122 }
Note: See TracChangeset
for help on using the changeset viewer.