Changelog 2016-09-30

  • Game.market.getAllOrders method now supports internal indexing by resourceType. When you provide an object literal filter description, it will work significantly faster:
    Game.market.getAllOrders({resourceType: RESOURCE_UTRIUM}); // fast
    Game.market.getAllOrders({resourceType: RESOURCE_UTRIUM, 
                              type: ORDER_SELL}); // fast
    Game.market.getAllOrders(); // slow
    Game.market.getAllOrders(i => i.resourceType == RESOURCE_UTRIUM); //slow
  • Increased player code length limit from 1 MB to 2 MB.
Have more questions? Submit a request

Comments

  • Dissi

    Thanks a lot for the orders change, it saved about 5 CPU each tick!

Powered by Zendesk