Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1013 for code


Ignore:
Timestamp:
Apr 10, 2008, 1:51:55 PM (17 years ago)
Author:
scheusso
Message:

more output

Location:
code/branches/network/src/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/GameStateClient.cc

    r1008 r1013  
    179179
    180180  GameState *GameStateClient::decompress(GameStateCompressed *a) {
     181    COUT(4) << "GameStateClient: uncompressing gamestate. id: " << a->id << ", baseid: " << a->base_id << ", normsize: " << a->normsize << ", compsize: " << a->compsize << std::endl;
    181182    int normsize = a->normsize;
    182183    int compsize = a->compsize;
  • code/branches/network/src/network/GameStateManager.cc

    r1011 r1013  
    6767  }
    6868 
     69 
     70  /**
     71   * this function is used to keep the memory usage low
     72   * it tries to delete all the unused gamestates
     73   *
     74   *
     75   */
    6976  void GameStateManager::cleanup(){
    70     /*unsigned int min_id=-1;
    71     int temp_id=0;
    72     ClientInformation *temp = head_;
    73     while(temp){
    74       if(temp->head)
    75         continue;
    76       temp_id=temp->getID();
    77       if(temp_id<min_id)
    78         min_id=temp_id;
    79       temp=temp->next();
    80     }*/ // probably not very efficient
    81    
    8277    std::map<int,int>::iterator it = gameStateUsed.begin();
    8378    while(it!=gameStateUsed.end()){
Note: See TracChangeset for help on using the changeset viewer.