Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2008, 10:10:31 AM (16 years ago)
Author:
scheusso
Message:
  • adjusted some priorities of objects (movableentity, controllableentity, positionableentity, model)
  • dedicated server mode doesn't consume 100%cpu load anymore now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/network/TrafficControl.cc

    r2413 r2415  
    3636
    3737namespace orxonox {
     38 
     39  static const unsigned int SCHED_PRIORITY_OFFSET = -1;
    3840
    3941  objInfo::objInfo(uint32_t ID, uint32_t creatorID, int32_t curGsID, int32_t diffGsID, uint32_t size, unsigned int prioperm, unsigned int priosched)
     
    256258    {
    257259      assert( (*itvec).objSize < 1000);
    258 //       COUT(0) << "==targetsize==  " << targetsize << endl;
    259260      if ( ( size + (*itvec).objSize ) < targetsize )
    260261      {
    261 //         COUT(0) << "no cut" << endl;
    262262        size += (*itvec).objSize;//objSize is given in bytes
    263263        ++itvec;
     
    265265      else
    266266      {
    267         COUT(0) << "cut" << endl;
    268267        clientListPerm_[currentClientID][(*itvec).objID].objValueSched += SCHED_PRIORITY_OFFSET; // NOTE: SCHED_PRIORITY_OFFSET is negative
    269 //         ittemp = itvec;
    270268        list->erase(itvec++);
    271 //         itvec = ittemp;
    272269      }
    273270//       printList(list, currentClientID);
Note: See TracChangeset for help on using the changeset viewer.