Task #1082

Optimize economy simulation

Added by Gwennaël Arbona about 1 year ago. Updated 3 months ago.

Assignee:Gwennaël Arbona
Target version:Final update


#1 Updated by Gwennaël Arbona 9 months ago

  • Target version changed from Farm update to Final update

#2 Updated by Gwennaël Arbona 8 months ago

Profiling notes on one save :

SimulateGeneralBehaviour 50ms
  UpdateTrading 40ms
    GetSectorBattleState() 6ms

  RepairAndRefill 2ms
    GetSectorBattleState() 0.2ms

  ProcessBudget 1.4ms
    FlareCompanyAI::ProcessBudget() 1.3ms    
    GetSectorBattleState() 0.2ms

SimulatePirateBehaviour 6ms
  UpdateTrading 5ms

#3 Updated by Gwennaël Arbona 8 months ago

  • Priority changed from Normal to High

#4 Updated by Gwennaël Arbona 8 months ago

Look for STAT_FlareCompanyAI_UpdateTrading_Sectors in code (2/3 of the entire simulation time).

#5 Updated by Gwennaël Arbona 3 months ago

  • Status changed from New to Closed
  • Assignee changed from Frédéric Bertolus to Gwennaël Arbona

Done as part of refactoring

Also available in: Atom PDF