Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by lipisis · Apr 28, 2020 at 01:25 PM · networkingmultiplayermultiplayer-networkingmatchmakingpeer-peer

Best solution for low bandwidth multiplayer game

Hi, I'm building a puzzle game which will have multiplayer (with matchmaking) and I'm looking for best solution for it. There's a lot of going on with Unity Multiplayer (FPS especially) but I got a feeling I might get away with something really simple but I want someone more experienced people thoughts on this.


Let's say game is similar to Pentominos (see image) where user needs to fill all grid with given puzzle pieces. Essentially this a singleplayer game but if we take it to multiplayer level, each player would be filling their own grids as fast as they can. Who does it first - wins. Main network traffic - each player would need to see other players grid alt text.

That's basically it, I'm looking for guidelines (or maybe some examples?) how would you implement this? I already have my own dedicated server that has all players info like "coins, rank, etc" so I assume I could use it as "matchmaking server" too?

Key points:

  • Matchmaking on your own dedicated server. How to? Brief guidelines?

  • Connecting two players to share low bandwidth data. How to? Brief guidelines?

game-example.png (94.3 kB)
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 dajohnso · Apr 28, 2020 at 06:00 PM 1
Share

Think about if the player actually needs to see the other persons grid or just know about how much is done? $$anonymous$$aybe consider another option. Have each players game "report" to the other game a "lower resolution" version of the grid with "block" representation of the players progress almost as if you cut the grids resolution in half or thirds, much like how large .gif/.jpeg pictures load on slow connections before filling in all the details to show a general representation of the other players progress. In the picture example above you could have a 3x5 "$$anonymous$$i" board that just gets filled with 1x1 blocks if that "region" of the other players board gets populated. This has many advantages to actually showing the other players board..

1) If they are playing the same exact game you cant see what they are doing 2) You only need to report 15 spots being populated with a block as opposed to showing the actual objects shapes and placements (i.e. significantly less data transfer) 3) This could be supported by "messages" between the apps (like AddBlock(1,3) to populate square[1,3] or Remove(1,3) to remove square[1,3]. This would be communicated between apps using a command, parameter type message (i.e. send a command and its parameters) with the same type of methods you would push things on a stack but ins$$anonymous$$d of a stack its a communications link between 2 apps where you can pass messages. 4) This would allows allow you to "represent" the other players progress on a much smaller board then the one the current player is playing on so it uses less real-estate on your screen 5) Command/Parameters can be any thing you define as part of the messaging protocol of your own design (using enum/defines, and you can allow commands to have different number of parameters just like pushing things on a stack, the other app pops() the communications stack and pulls as many parameters it needs for that commands

avatar image lipisis dajohnso · Apr 28, 2020 at 07:42 PM 0
Share

@dajohnso thank you for your reply. Pretty much you've described, that's how I already saw this game. I like your solution with stack and push / pop I will consider it as a possible solution. Appreciate it.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by lipisis · Apr 28, 2020 at 07:51 PM

I've decided to try Mirror asset due to the following reasons:

  • It seems it has high level API, built in KISS principle which should make it easy to use.

  • It can do everything I would need for this project (double checked with people on Mirror's discord chat)

  • Also this asset is constantly being updated with all changes Unity is currently making to their networking, which is really promising.

  • There are many people using it so there is really low chance of this going to deprecate

  • Really high ratings on Unity

  • It's completely free

If anyone doesn't seem to like Mirror, I would suggest to try @dajohnso solution, that he described on his reply to my question. I would go for that one if not Mirror.

Comment
Add comment · 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

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

244 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity networking tutorial? 6 Answers

How to change NetworkMatch Name or Set MatchInfoSnapshot 0 Answers

how can i change my scripts to make them multiplayer aware,How can I change my scripts to make them multiplayer aware? 1 Answer

MLAPI spawn player prefab 2 Answers

UNET Multiplayer Lobby not creating an instance of the lobby player 1 Answer


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