Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 6, 2009, 9:39:41 PM (16 years ago)
Author:
scheusso
Message:

-performance/memory optimisations in gamestate and synchronisable
-enhancement of portability (gcc↔msvc)

Location:
code/branches/presentation/src/network/synchronisable
Files:
3 edited

Legend:

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

    r2540 r2575  
    422422  }
    423423
    424   bool Synchronisable::doSelection(int32_t id){
    425     return true; //TODO: change this
    426     //return ( id==0 || id%objectFrequency_==objectID%objectFrequency_ ) && ((objectMode_&state_)!=0);
    427   }
    428 
    429424  /**
    430425   * This function looks at the header located in the bytestream and checks wheter objectID and classID match with the Synchronisables ones
  • code/branches/presentation/src/network/synchronisable/Synchronisable.h

    r2485 r2575  
    118118    uint32_t getSize(int32_t id, uint8_t mode=0x0);
    119119    bool updateData(uint8_t*& mem, uint8_t mode=0x0, bool forceCallback=false);
    120     bool isMyData(uint8_t* mem);
    121     bool doSelection(int32_t id);
    122     bool doSync(int32_t id, uint8_t mode=0x0);
     120    inline bool isMyData(uint8_t* mem);
     121    inline bool doSync(int32_t id, uint8_t mode=0x0);
    123122
    124123    uint32_t objectID;
  • code/branches/presentation/src/network/synchronisable/SynchronisableVariable.h

    r2371 r2575  
    7575
    7676      virtual inline uint8_t getMode(){ return mode_; }
    77       virtual void getData(uint8_t*& mem, uint8_t mode);
     77      virtual inline void getData(uint8_t*& mem, uint8_t mode);
    7878      virtual inline void putData(uint8_t*& mem, uint8_t mode, bool forceCallback = false);
    79       virtual uint32_t getSize(uint8_t mode);
     79      virtual inline uint32_t getSize(uint8_t mode);
    8080      virtual inline void* getReference(){ return (void *)&this->variable_; }
    8181    protected:
Note: See TracChangeset for help on using the changeset viewer.