You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've included relevant parts of a profiler output. The profiler incorrectly records some functions which have a constant cost, shown below. I wrap creep methods as Zerg methods, and in my codebase, most creep action methods are called from a Task, which checks if the action can be performed before calling task.work(). So Task.harvest should have a CPU cost of at least 0.2; many actions which are wrapped in tasks seem to have half of what should be a reasonable CPU value.
I've included relevant parts of a profiler output. The profiler incorrectly records some functions which have a constant cost, shown below. I wrap creep methods as
Zerg
methods, and in my codebase, most creep action methods are called from aTask
, which checks if the action can be performed before callingtask.work()
. SoTask.harvest
should have a CPU cost of at least 0.2; many actions which are wrapped in tasks seem to have half of what should be a reasonable CPU value.The text was updated successfully, but these errors were encountered: