Open glitchassassin opened 1 year ago
I've gotten some reports that calling moveTo when a creep doesn't need to move is costing upwards of 0.2 CPU. Let's see if we can add benchmarks and perhaps test for excessive CPU usage.
moveTo
As a temporary workaround, if a creep doesn't need to move, calling move(creep, [creep.pos]) will register the move without spending any extra CPU.
move(creep, [creep.pos])
I've gotten some reports that calling
moveTo
when a creep doesn't need to move is costing upwards of 0.2 CPU. Let's see if we can add benchmarks and perhaps test for excessive CPU usage.