I am developing a multiplayer game and I am trying to do networking tests locally. I build my project and run the game from my editor. I connect via IP (localhost) and launch the game. When the game launches, everything on my computer slows to a crawl. This includes the game in the Editor, the build version and everything else (mouse movement, explorer, etc…).
I monitored my CPU, disc usage, RAM and network traffic while this was happening and they were all very low.
Another developer on this project (running Windows 10) does not experience this using the same repro steps.
I am using Windows firewall and have allowed the processes involved. I have also tried this, turning windows firewall off with the same result.
The problem does not occur when I run one instance of the game (either the editor or the build version) and connect via IP to another machine over the internet (the other developer).
We are at a loss as to what could be causing this, but it is completely un-usable. Any assistance would be much appreciated!
Specs:
Unity 5.0.0f4 Personal
Windows 7 x64 Professional
Thank you for the response gameDevi.
I installed Unity 5.2.2 - and after some hacking to get things up and running again I get the same result as I did with 5.0.0f4. It was worth a shot though.
To answer your question as to why I am using 5.0.0f4 -
Unity does not have a convenient method of patching/updating and you have to do a fresh install every time you want to get an update.
My project has a few dependencies on external packages and we must make sure that all of those dependencies are compatible with the new version of Unity. In this case, they were not.
Everyone involved in the project will have to update at the same time to ensure consistency when our scripts get re-factored for API changes and are recompiled.
Because of the above reasons, we tend to avoid updating Unity unless there is a noticeable positive impact for our project.
If anyone has another suggestion that might help, I’m all ears!