CPU usage for cancelOrder
-
What would the CPU usage be for the following statements:
someCreep.move(TOP)
someCreep.cancelOrder('move')Does move(TOP) followed by cancelOrder('move') reduce CPU usage by 0.2 CPU? Or does it still use the 0.2 for move?
-
I am quite sure that it will use the CPU, as the CPU usage is from the method call itself, not the execution of the order.
Take moveTo as an example, it has to calculate the path to the target, cancelling this will not remove the time that it has taken to calculate the path.
-
CPU usage cannot be reduced. This snippet will consume constant amount of CPU as usual.
-
Cool! Thought so! This makes it more clear. Can we add this in the documentation as well? (under theĀ
cancelOrder part)