Reputation: 2593
I am currently working with Java server side and as3 client side. I'm wondering if there is a silver bullet out there for synchronizing the clock between them. Between variable latency and variable clock speeds it seems like each packet would need a timestamp.
Thanks!
Upvotes: 6
Views: 2897
Reputation: 651
This is just off the top of my head, without any code.
I'm not sure if this will work 100% accurately, but I hope this helps!
Upvotes: 2
Reputation: 438
No, there is no silver bullet.You will have to improvise.The timestamp is a good idea. Also, try to keep to a minimum the computation done on the server.Don't simulate irrelevant stuff.Just things that you think will break up your game logic.Let the clients compute the rest, and only broadcast the results to your subscribers.
Upvotes: 0