GameServer icon indicating copy to clipboard operation
GameServer copied to clipboard

Get rid of multithreading

Open LeagueSandboxBot opened this issue 9 years ago • 4 comments

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

LeagueSandboxBot avatar Dec 26 '16 15:12 LeagueSandboxBot

Logger is multithreaded, decreases logging lag a ton. Locks are in place to avoid race conditions.

MatthewFrench avatar Dec 26 '16 17:12 MatthewFrench

Anywhere with System.Timers.Timer will generate multiple threads. I remember seeing that somewhere else besides the Logger.

MatthewFrench avatar Dec 26 '16 17:12 MatthewFrench

Timers cause multithreading and syncing problems

danil179 avatar Feb 01 '19 10:02 danil179

The only Timer now is in Game class _pauseTimer = new Timer.

danil179 avatar Apr 06 '21 00:04 danil179