Performance issues?Solved
Getting performance warnings with over 100ms to call commands

(19:39:20) | [ServerVar] giving FakeNinja 1 x Computer Station
(19:39:32) | Calling 'CCTVCommand' on 'CCTVUtilities v1.1.5' took 134ms
(19:39:48) | [CCTV Utilities] An error has occured! Object reference not set to an instance of an object
(19:39:48) | Calling 'CCTVCommand' on 'CCTVUtilities v1.1.5' took 103ms
(19:39:54) | [CCTV Utilities] An error has occured! Object reference not set to an instance of an object
(19:39:54) | Calling 'CCTVCommand' on 'CCTVUtilities v1.1.5' took 114ms
(19:39:59) | [CCTV Utilities] FakeNinja tried to interact with other players CCTV: DOME1 owned by Server(0)
(19:39:59) | [CCTV Utilities] An error has occured! Object reference not set to an instance of an object
(19:39:59) | Calling 'CCTVCommand' on 'CCTVUtilities v1.1.5' took 108ms​

Is there a way to handle these operations better in order not to risk lag?

The time there isn't really concerning, though the error would be an issue; but the full error from the log would be needed.
5e13a8d5b2bc5.jpg Wulf
The time there isn't really concerning, though the error would be an issue; but the full error from the log would be needed.
Okay, that's good to hear.

The error occured when running the /cctv add command with an argument that does not match an active camera so i guess that becomes a null object that isn't captured by the code before throwing an error.
These errors have been fixed since version 1.4.1. Like Wulf said the timing isn't an issue, unfortunately, it does take a second to perform some actions.

-GG
Locked automatically