Game.creeps.filter vs. room.find (FIND_MY_CREEPS)



  • Which is a more effective way to find all creeps in a room: filtering Game.creeps or using room.find (FIND_MY_CREEPS)?


  • Dev Team

    Room.find is optimized for searching in the specified room only, and Game.creeps contains all creeps within all accessible rooms. If you have many rooms, Room.find is definitely faster.