Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2009, 6:05:11 PM (15 years ago)
Author:
scheusso
Message:

trying to reduce network delays/lags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp3/src/network/Server.cc

    r3045 r3066  
    155155  void Server::update(const Clock& time) {
    156156    processQueue();
     157    gamestates_->processGamestates();
    157158    //this steers our network frequency
    158159    timeSinceLastUpdate_+=time.getDeltaTime();
    159160    if(timeSinceLastUpdate_>=NETWORK_PERIOD){
    160161      timeSinceLastUpdate_ -= static_cast<unsigned int>( timeSinceLastUpdate_ / NETWORK_PERIOD ) * NETWORK_PERIOD;
    161       gamestates_->processGamestates();
    162162      updateGamestate();
    163163      FunctionCallManager::sendCalls();
Note: See TracChangeset for help on using the changeset viewer.