Online Multiplayer Game using WCF
Asked Answered
P

1

6

Do you think WCF provides the necessary plumbing out-of-the-box to support an online, multiplayer gaming experience? Particularly, a real-time environment ala WoW, Ultima Online, etc. Why or why or not?

The most important considerations will likely be:

  1. Are the included bindings adequate for such a secenario?

  2. Barring any physical server requirements, would the included bindings meet the performance requirements?

Just looking for your thoughts on the matter!

Thanks

Pansophy answered 9/1, 2012 at 15:20 Comment(2)
What kind of online game? It would depend on how often the game state has to update. Is it turn based or real time?Melville
@Evan, I clarified my question. Definitely a real-time gaming experience is what I'm interested inPansophy
M
19

Do you think WCF provides the necessary plumbing out-of-the-box to support an online, multiplayer gaming experience? Why or why or not?

No, not out-of-box. Almost all online gaming uses UDP instead of TCP. This article explains why quite nicely, particularly, take a look at the section "Why you should never use TCP to network a multiplayer game". WCF doesn't use UDP out of the box, so you would have to implement a custom transport.

Are the included bindings adequate for such a secenario?

Yes, the bindings may be adequate, but the transport is not.

Barring any physical server requirements, would the included bindings meet the performance requirements?

The only way to know for sure would be to test it.

Michalmichalak answered 9/1, 2012 at 15:28 Comment(4)
Excellent answer! Very relevant links. Would upvote twice if I could! ThanksPansophy
I did know that UDP is the defacto standard in real-time online games, just wanted to get some opinions. It seems some games, where err, less than real-time is acceptable, you might get away with a polling duplex binding. But I guess UDP is just more suitable in generalPansophy
@ErOx I suppose it depends on your circumstances. I would do a lot of testing and experimenting before settling on TCP. One "nice" thing about WCF is if using TCP turns out to be bad, you can change the transport relatively easily since WCF mostly abstracts out the transport implementation.Michalmichalak
I realize the age of this answer but it appears the following month this was published. Thought it might be useful.Angele

© 2022 - 2024 — McMap. All rights reserved.