// recover actual ControlState from network data and previous entry void serializefrom_delta(BitStream &bs,const ControlState &prev) { field0 = bs.GetPackedBits(1); // field_0 diff next-current time_res = bs.GetPackedBits(1); // time to next state ? timestep = bs.GetFloat(); // next state's timestep time_rel1C = timestep; if(bs.GetBits(1)) //timestep!=time_rel1C time_rel1C = bs.GetFloat(); m_perf_cntr_diff = bs.Get64Bits(); //next_state->ticks - current_state->ticks if(bs.GetBits(1)) { // perf freq changed between current and next m_perf_freq_diff = bs.Get64Bits(); } }
void serializefrom_base(BitStream &bs) { field0 = bs.GetBits(32); //field_0 time_res = bs.GetBits(32); // get_time_resl timestep = bs.GetFloat(); //v7->timestep time_rel1C = timestep; if(bs.GetBits(1)) //timestep!=time_rel1C time_rel1C = bs.GetFloat(); m_perf_cntr_diff = bs.Get64Bits(); //next_state->ticks - current_state->ticks m_perf_cntr_diff = bs.Get64Bits(); //v7->perf_cntr1 }