Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Schnitzie
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Schnitzie

    @Schnitzie

    1
    Posts
    794
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Schnitzie Follow

    Posts made by Schnitzie

    • High CPU usage differences on a tiny script
      module.exports.loop = function () {
        console.log("Tick: ");
        var CPU_LIMIT = Game.cpuLimit;
        console.log(Game.getUsedCpu()+"/"+CPU_LIMIT);
        for(var i in Memory.creeps) {
          if(!Game.creeps[i]) {
              delete Memory.creeps[i];
          }
        }
        console.log(Game.getUsedCpu()+"/"+CPU_LIMIT);
      }
      

      This produces huge differences in cpu time used from ~1 to ~20.
      Also the cpu usage is already very high at the first log already...

      Is this normal behaviour?

      posted in Technical Issues and Bugs
      Schnitzie