I have a couple of questions on a few of the basics for creating a 3d server, they are:
1. Should the server update each client for every frame of animation, or could you run 5 or 10 frames before updating? Or would it screw up collisions, etc?
2. Should only the server check collisions, or each client?
3. Is there a faster way to loop thru each player then with a for p.player=each player, or go with for x=1 to 100 and update p(x)\stuff etc?
4. How many frame rates is a good frame rate for a 3d server, or the minimum to shoot for?
5. How much faster is udp then tcp? twice as fast??
6 Oh and whats the best way to wait for the next stream of input? While not readavail(stream)? or??
I am working on my first server code, and i have a basic idea, i just want to make sure i have the basics right.
Thanks for the input.
1. Should the server update each client for every frame of animation, or could you run 5 or 10 frames before updating? Or would it screw up collisions, etc?
2. Should only the server check collisions, or each client?
3. Is there a faster way to loop thru each player then with a for p.player=each player, or go with for x=1 to 100 and update p(x)\stuff etc?
4. How many frame rates is a good frame rate for a 3d server, or the minimum to shoot for?
5. How much faster is udp then tcp? twice as fast??
6 Oh and whats the best way to wait for the next stream of input? While not readavail(stream)? or??
I am working on my first server code, and i have a basic idea, i just want to make sure i have the basics right.
Thanks for the input.