glitchassassin / screeps-cartographer

Cartographer is an advanced (and open source) movement library for Screeps
29 stars 8 forks source link

CPU Benchmarks #34

Open glitchassassin opened 1 year ago

glitchassassin commented 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.

glitchassassin commented 1 year ago

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.