Awesome
<p align="center"> <img src="http://oiran.studio/images/ignorance14.png" alt="Ignorance 1.4 Logo"/> </p>Ignorance 1.4 Long Term Support (LTS)
I'd appreciate a coffee if you use this transport in your project and you want to help keep my bills paid and lights on.
"Probably the fastest transport out there for Mirror..." - FSE_Vincenzo, 2021 (Mirror Discord)
Ignorance is a high-performance UDP based transport that plugs into Mirror Networking. By harnessing the power of the tried and true ENet native library, it provides reliable and unreliable UDP communications with up to 4096 connected peers (clients) and 255 channels. Reliable UDP has a lot of benefits over TCP which was the default in Mirror until KCP was implemented.
The benefit of Ignorance is that you can utilize channels which allow you to split up network communications. This allows you to have channels for data that are mission critical and must be sent out the door as quickly as possible as well as channels that can send slower non-essential data.
Long Term Support
Ignorance 1.4 is currently in Long Term Support, meaning that no new features are planned. Bug fixes are prioritized and will be addressed when I have free time.
If you have an urgent bug report, then you are encouraged to consider a sponsorship. This will allow me to take time away from my business activities and prioritize the bug report.
Licensing
Ignorance is licensed under MIT license. However, there has been recent cases where other developers have been using the full Ignorance source or parts thereof, stripping the MIT licensing and slapping their own license on it instead.
This falls in violation of the MIT license as it clearly states that copyright notices must remain intact. In short, don't be a code thief and respect the MIT license.
Requirements
- Mirror, version 66 upwards
- The minimum version of Unity required is what Mirror requires. I recommend Unity 2020 LTS.
- Basic knowledge of Unity Engine and Mirror Networking
Ignorance 1.4 LTS will not work with older Mirror versions. You can backport 1.4 LTS to your older Mirror project, but that support is on you.
Installation
Download the Unity Package from Releases that is the latest one. Simply import the Unity Package and Unity will do the rest. Follow the instructions below.
Alternatively you can use the code from the master branch, which is often up to date compared to the releases.
How to use
I have included two pre-configured sample scenes so you can get started easily. One is Pong, one is a copy paste with some modifications of Mirror's Basic scene. Otherwise add the script called Ignorance to your NetworkManager object, removing any TCP-based or other UDP-based transport (ie. kcp2k). Then set the script to be used in NetworkManagers' "Transport" field.
Documentation
See DOCUMENTATION.md.
For Ignorance Standalone, see STANDALONE.md.
For the FAQ (aka Please Read This First), see FAQ.md.
Ignorance with Mirage/et al.
- Mirage users: Please use the built-in UDP transport that ships with it.
- FishNet users: Fludity was a hacked up version of Ignorance with its license stripped. It's been replaced with Tugboat.
- Other network stacks: Ignorance was not designed to be used outside of Mirror.
If you are using your own network stack or you are trying to plumb Ignorance to another networking solution that already exists, you are much better off using the ENet-CSharp wrapper to talk to ENet directly. You could also try Ignorance Standalone which is mentioned above.
Ignorance in Action
-
If you own a copy of Population One, congrats. That game uses Ignorance as its primary network transport layer. It also earns its spot into the first major game that is using Ignorance.
-
Ignorance was used in a "Vinesauce is Hope" walking simulation demo which had multiple server instances running with over 300 CCU each. Video clips available here.
What devices are supported?
IMPORTANT: 32bit Desktop targets are NOT supported. Macintoshes with the M1 (ARM64/AArch64) chip are also not supported. Rosetta may work though.
Supported platforms, out of the box:
-
64Bit Desktop Platforms (Windows/Mac/Linux), Android (ARMv7/ARM64) including VR devices and iOS (ARMv7/ARM64).
-
If ENet native can run on it and it's supported by Unity, you're good to go with Ignorance.
-
Apple M1 Device Users must recompile ENet Native for their M1 processors. Using Ignorance straight out of the box will result not be able to load the x86_64 library on Apple Silicon. Rosetta may work, but no promises.
Other platforms that require some extra work:
- Consoles like the Nintendo Switch, PlayStation 4 and PlayStation 5. I do not have development clearance to build the native library for these platforms, so they require additional work to get functioning.
For more info, see the FAQ.
I found a bug, where do I report it?
Check the current open bug reports and/or report a new one here.
Failing that you can always catch me on the Oiran Studio discord or Mirror discord.
Bugs that do not have enough details will be either closed or put as low priority. Details like your OS, Unity Editor version, any Ignorance errors, etc is essential for a good bug report.
I have other questions, I want answers.
Here's a quick primer.. It might be slightly out of date, but it covers the basics of Ignorance.
Credits
-
Donators: Thanks for helping keep the lights on.
-
FSE_Vincenzo: Resident master of the ENet way. They are part of Flying Squirrel Entertainment - go check their games out.
-
JesusLuvsYooh : CCU endurance testing project, ideas, fixes and other awesome stuff
-
Katori: Helped kickstart the threaded version that evolved into short-lived Ignorance 2.x version, which later became Ignorance Threaded.
-
PhantomGamers: Got Mirror + Ignorance working as a BepInEx client-side side-load modification for a game. Holy shit, that's cool.
-
BigBoxVR: Pull requests and found a race condition that threatened stability. Also uses Ignorance in Population One, a VR title.
-
Martin: Pull requests, testing with Dissonance. Great VoIP asset for Unity.
-
The Mirror Discord and the others who I have missed. Thanks a lot, you know who you are.
-
You too can have your name here if you send in a PR. Don't delay, get your PR in today!
To be continued...?