So I've just started trying to make a multiplayer pong game and I have read a lot of different ways to code the connections. However, I read somewhere that you should have the inputs sent to the server queue up and then the server just processes it at fixed intervals. However, if this is done, how does the server know, process, and send accurate data based on the time the action was sent? Because if the data is just queued up, if something happens like 100 ms after another but the server processes them at the same time, wouldn't that mess up the synchronization of the game? Should the server instead be coded to handle the client actions immediately even if it costs a lot of cpu etc in larger games?
Subscribe to:
Post Comments (Atom)
Simple past, Present perfect Past perfect
Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...
-
As in many game libraries such as LWJGL, you can check mouse/keyboard events with Mouse.isButtonDown or Keyboard.IsKeyDown. I want to check ...
-
Will all the three sentences express this idea naturally? Section two roughly symmetrical pieces of your hair at the front. (Used by an Amer...
-
I am looking for a way to calculate surface area of a 3D mesh object and found this code from a Unity forum : public float Area(Mesh m) {...
No comments:
Post a Comment