27.01.2014, 16:20
Quote:
I would imagine that 1s update instead of 0.20s is there to reduce network traffic. The assumption is, that most of the time, server would only really need to know the camera vector with OnPlayerUpdate level of detail when the player is using a weapon.
Also, correct me if I'm wrong, but I think it also sends the camera data faster when you press the aim key as well. When making a flying-camera script, you could make the LMB/RMB button into the 'move forward' instruction to make the direction a bit more responsive. |
Even if the server internally doesn't need these camera updates, what about the gamemode? The server doesn't really know if these camera updates are used frequently (okay, it's technically possible for the server to find out: measure time between GetPlayerCameraPos calls and the smaller the time the more frequenter request camera updates).