Task #1082

Optimize economy simulation

Added by Gwennaël Arbona 9 months ago. Updated about 2 months ago.

Status:New
Priority:High
Assignee:Frédéric Bertolus
Category:-
Target version:Economy update

History

#1 Updated by Gwennaël Arbona 3 months ago

  • Target version changed from Farm update to Economy update

#2 Updated by Gwennaël Arbona about 2 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 about 2 months ago

  • Priority changed from Normal to High

#4 Updated by Gwennaël Arbona about 2 months ago

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

Also available in: Atom PDF