Should the networking of my game be a component or a service?
Posted
by
aalcutt
on Game Development
See other posts from Game Development
or by aalcutt
Published on 2013-03-17T14:01:28Z
Indexed on
2013/11/05
16:14 UTC
Read the original article
Hit count: 140
I am working on a windows game and I am trying to understand the XNA GameComponents and GameServices classes and use. From what I understand about a component is that it has an Update method that gets call in every frame, and a service can be referenced from other components if needed.
So the way I think a network component would work is that in its Update method it would receive and send data. It probably makes sense to receive the network data once per frame, but it doesn't for sending it. Shouldn't the game send its own updates to others the moment it has it to cut down on lag?
© Game Development or respective owner