Changeset 7680 in orxonox.OLD for branches/network/src/lib/network/network_manager.cc
- Timestamp:
- May 18, 2006, 2:10:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_manager.cc
r7540 r7680 52 52 this->defaultSyncStream = NULL; 53 53 this->sharedNetworkData = SharedNetworkData::getInstance(); 54 this->elapsedTime = 0.0f; 54 55 55 56 PRINTF(0)("NetworkManager created\n"); … … 123 124 /** 124 125 * sync the network 126 * @param dtS: the seceonds elapsed since the last synchronize call 125 127 */ 126 void NetworkManager::synchronize( )128 void NetworkManager::synchronize( float dtS) 127 129 { 130 this->elapsedTime += dtS; 131 if( likely(this->elapsedTime < 1.0f / NETWORK_FREQUENCY)) 132 return; 133 this->elapsedTime = 0.0f; 134 128 135 if (this->netStreamList != NULL || (this->netStreamList = ClassList::getList(CL_NETWORK_STREAM)) != NULL) 129 136 {
Note: See TracChangeset
for help on using the changeset viewer.