INNER CODE UNIT · C++
client_commands
trillek-team/tec · client/game.cpp:148
proto::ClientCommands client_commands = this->player_camera->GetClientCommands();
client_commands.set_commandid(command_id++);
client_commands.set_laststateid(server_connection.GetLastRecvStateID());
client_commands.SerializeToZeroCopyStream(&update_message);
server_connection.Send(std::move(update_message));
game_state_queue.SetCommandID(command_id);
}
delta_accumulator -= COMMAND_RATE;
}
tfm.state_queue_time = GetElapsedTime();
UpdateVComputerScreenTextures();
tfm.vcomputer_time = GetElapsedTime();
ss.SetDelta(delta);
tfm.sound_system_time = GetElapsedTime();