GameServer
GameServer copied to clipboard
Get rid of multithreading
Somewhere there's something creating threads. Make everything work single threadedly, or the threads work in a very contained space with no chance of interfering with the single threaded logic
Logger is multithreaded, decreases logging lag a ton. Locks are in place to avoid race conditions.
Anywhere with System.Timers.Timer will generate multiple threads. I remember seeing that somewhere else besides the Logger.
Timers cause multithreading and syncing problems
The only Timer now is in Game class _pauseTimer = new Timer.