Server Questions

Blitz3D Forums/Blitz3D Programming/Server Questions

Gauge(Posted 2004) [#1]
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.


Gauge(Posted 2004) [#2]
anybody? Can somoene tell me if the server needs to or should update the clients for each frame?


RexRhino(Posted 2004) [#3]
Are you writing a game like doom? Or a massivly multiplayer game? Or a real time strategy game?


Gauge(Posted 2004) [#4]
massive multiplayer...*smile*