Command flags
#2

Firstly, the upgrade/downgrade is negligible.
Secondly, it makes your code tidier.

By doing the check in OnPlayerCommandReceived callback, you avoid the command function call and also the OnPlayerCommandPerformed function call. You are saving two function calls.

Whatever the change in performance may be, it is so negligible that you won't even save 1ms after running the server for a whole day.
Reply


Messages In This Thread
Command flags - by Stinged - 27.10.2016, 13:34
Re: Command flags - by Yashas - 27.10.2016, 14:30
Re: Command flags - by Stinged - 27.10.2016, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)