Question: Is using the GC.Collect Method acceptable when coming across a Conquer Online source?
Reason: I'm trying to make time and put effort into Impulses 5165 Base to improve it's overall performance on a step-by-step level(for educational purposes ofc).
I personally can't decide because my knowledge in C# is still improving.
Example of GC.Collect being used:
Code:
ServerBase.Thread StatusFlagChange = new Conquer_Online_Server.ServerBase.Thread(1); StatusFlagChange.Execute += new Action(StatusFlagChange_Execute); ServerBase.Thread FloorItems = new ServerBase.Thread(1); FloorItems.Execute += new Action(FloorItems_Execute); ServerBase.Thread CharacterThread = new ServerBase.Thread(100); CharacterThread.Execute += new Action(CharacterThread_Execute); ServerBase.Thread OfflineSet = new ServerBase.Thread(100); OfflineSet.Execute += new Action(OfflineSet_Execute); GC.KeepAlive(CharacterThread); GC.KeepAlive(FloorItems); GC.KeepAlive(StatusFlagChange);
:
Many thanks in advance.