Task #1082

Optimize economy simulation

Added by Gwennaël Arbona about 1 year ago. Updated 20 days ago.

Status:Closed
Priority:High
Assignee:Gwennaël Arbona
Category:-
Target version:Final update

History

#1 Updated by Gwennaël Arbona 6 months ago

  • Target version changed from Farm update to Final update

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

  • Priority changed from Normal to High

#4 Updated by Gwennaël Arbona 5 months ago

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

#5 Updated by Gwennaël Arbona 20 days 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