🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
high Bandwith or partage work
I make a multiplayer server<>client
I want to know what is the best :
1 - ->client send key_pressed
->server check key_keypressed apply movement to own DB
->server send to each client the new position of client
-> client refresh position
2 - -> client send changement position
-> server check changement position apply new state direction
-> send to each client the state direction
-> server and client run script movement with same speed
Number 2 but the server doesn''t have to be in sync. My server completes the client''s move (since it has to do collision detection anyway) before ever sending it out to everyone else to do. The server completes the move in less than a millisecond so there''s no lag cost.
Your results may vary.
Ben
http://therabbithole.redback.inficad.com
Your results may vary.
Ben
http://therabbithole.redback.inficad.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement