Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by csisy · May 26, 2015 at 09:52 AM · networkingnetworkserver

Dedicated server-client networking design (MOBA-like)

Hi,

Let me begin with an example game. I'd like to have a similar system like in League of Legends (DOTA is doing this as well IMHO).

Small description: There is one server and multiple games. The user logs in, then can join in a queue (matchmaking) and play with each others.

The problem(s): If I have only one dedicated server then it handles all of the information (for every game created). The server has to have the game objects as well, beucase it's an authorative server, so it does the computations. If there are 1.000 or 10.000 created game, it can be memory and computation heavy, can't it?

What would be the best design for a game like that?

Thanks

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Lilbob · May 27, 2015 at 04:18 PM 0
Share

Yes, it COULD be very heavy. it really depends on your game. How many players can join, how many objects are on screen, ec. You would have to find out how many instances your dedicated server can run, then set that as a cap.

avatar image csisy · May 27, 2015 at 07:58 PM 0
Share

$$anonymous$$y biggest problem with this calculation is that I'm not sure about how much memory is used by the Unity. I mean, in the server side, I don't need the actual mesh data and so on, just the game objects with some other informations like collision data and navmesh. I guess, I should try and measure it. :)

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by g-pechorin · May 27, 2015 at 08:19 AM

I would guess that it works something like an old-school IRC-like chat room. The authentication server acts as a sort of proxy and start-up shards (or whatever) then pass each player's commands off to that second program - which might be on a separate computer. Just like IRC's architecture stuff

With a MOBA the "matches" don't have to be shared worlds so each shard only needs about 30 people or so ... right?

(Disclaimer ; I haven't looked at Unity's wondrous server software)

(Disclaimer ; My exposure to MOBAs is working as a server-jockey for not-really-MOBA, a 3 hour trial of Heroes of the Storm, and what I've gleaned from imgur)

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image csisy · May 27, 2015 at 08:05 PM 0
Share

Thanks

So I would have two different programs: - The first is the match-maker-server. This handles the user authentication and queues. - When a match is found (it means 6-10 people), the second program is started which actually handles the game. Or it's already running in the background and a new thread is created for the new game.

Sounds like a good idea, however I'm not sure how many player could be handled on an average PC.

avatar image g-pechorin · Jul 06, 2015 at 09:22 AM 0
Share

Yes - you've got the gist of "how I would do it"

I wouldn't run the matches on player's PCs (cheaters) I'd use a second set of "arena-servers" which trust the match-maker-server. The match-maker-server can tell the arena-servers which player-clients to let in, then tell the player-clients to connect to the arena-servers

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Unity networking tutorial? 6 Answers

How to watch in client applications what it is happening in the server one? 0 Answers

Network and Server options 0 Answers

Creating a multiplayer game. 1 Answer

Networking: Standalone Simulation Server 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges