Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 18, 2010, 12:05:57 AM (14 years ago)
Author:
scheusso
Message:

further traffic reduction:

  • synchronisableheaders are now smaller( by 2 bytes per header )
  • variableID of SynchronisableVariables are now uint8_t → max 256 synchronised variables per Synchronisable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network2/src/libraries/network/GamestateClient.cc

    r6449 r6450  
    161161      assert(b);
    162162    }
    163 //     if(gs->isDiffed()){
     163    if(gs->isDiffed())
     164    {
     165      assert(0);
    164166//       packet::Gamestate *base = gamestateMap_[gs->getBaseID()];
    165 //       if(!base){
    166 //         COUT(3) << "could not find base gamestate id: " << gs->getBaseID() << endl;
     167//       if(!base)
     168//       {
     169//         COUT(0) << "could not find base gamestate id: " << gs->getBaseID() << endl;
     170//         assert(0);
    167171//         delete gs;
    168172//         return 0;
    169173//       }
    170 // //       assert(base); //TODO: fix this
    171174//       packet::Gamestate *undiffed = gs->undiff(base);
    172175//       delete gs;
    173176//       gs=undiffed;
    174177//       COUT(5) << "successfully undiffed gamestate id: " << undiffed->getID() << std::endl;
    175 //     }
     178    }
    176179    if(gs->spreadData(0x2))
    177180      return gs;
    178181    else
    179182    {
    180       COUT(3) << "could not spread gamestate" << endl;
     183      COUT(0) << "could not spread gamestate" << endl;
     184      assert(0);
    181185      return NULL;
    182186    }
Note: See TracChangeset for help on using the changeset viewer.