id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,phab_field 5200,AIInterface freezes the game for 8 seconds on gamestart,elexis,,"There is an about 8 second freeze on the loading screen before the mapgen starts. It occurs when `simulation/helpers/Setup.js` initializes the diplomacy with `SetTeam`. That broadcasts `MT_DiplomacyChanged` which triggers `Auras.prototype.Clean()`. According to temple, `AIInterface.prototype.OnTemplateModification` consumes most of the time for processing that. See Phab:P127 for some statistics in seconds. It's only teambonuses that change the template costs and it is slow (500ms per call) without any entities on the map. {{{ WARNING: Auras.OnDiplomacyChanged [""teambonuses/brit_player_teambonus""] 0.667 WARNING: Auras.OnDiplomacyChanged [""teambonuses/iber_player_teambonus""] 0.697 WARNING: Auras.OnDiplomacyChanged [""teambonuses/sele_player_teambonus""] 0.792 WARNING: Auras.OnDiplomacyChanged [""teambonuses/maur_player_teambonus""] 0.917 }}} {{{ { ""type"": ""global"", ""affects"": [""CitizenSoldier Javelin""], ""affectedPlayers"": [""ExclusiveMutualAlly""], ""modifications"": [ { ""value"": ""Cost/Resources/food"", ""multiply"": 0.8 }, { ""value"": ""Cost/Resources/wood"", ""multiply"": 0.8 }, { ""value"": ""Cost/Resources/metal"", ""multiply"": 0.8 }, { ""value"": ""Cost/Resources/stone"", ""multiply"": 0.8 } ], ""auraName"": ""Saripeko"", ""auraDescription"": ""Reduces the cost for citizen-soldier skirmishers with 20% for allies of Iberian players"" } }}} If this is new in Alpha 23, then it could be one of the reasons why players dropped more often in this release D1513. ",defect,closed,Must Have,Alpha 23,UI & Simulation,fixed,,,Phab:D1559