Patch 3644 performance issues with AI

This is for troubleshooting of problems with the FAF client and Forged Alliance game.

Moderator: PhilipJFry

Patch 3644 performance issues with AI

Postby psiggy » 27 Jul 2015, 23:59

I'm playing on Betrayal Ocean with my father, trying to beat 4+ cheating AIs.
In original FA and in FAF before patch 3642 the game slows down until we wipe out 3 or 4 opponents but runs smoothly (just slow).
In patch 3644 after 10+ minutes of game (sometimes earlier) the game begins to freeze for a half of second each 2 seconds (lags). The more game advances the longer it freezes, rendering it impossible to play after 20+ minutes.

I run the game on Core i73930\16Gb\Radeon 7990 and freshily reinstalled W7.
Usually we run offline games, but I've recorded one online. Game.log is more than 1Gb uncompressed and 8 Mb compressed, so here is a part of it:
Code: Select all
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(129): in function `GetFactoriesBuildingCategory'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(144): in function <...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua:143>
warning:         (tail call): ?
warning:         ...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua(5508): in function `SorianEconAssistBody'
warning:         ...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua(5458): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua:5454>
warning: Deprecated function GetUnitBeingBuilt called at
warning: stack traceback:
warning:         ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(3953): in function `GetUnitBeingBuilt'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(129): in function `GetFactoriesBuildingCategory'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(144): in function <...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua:143>
warning:         (tail call): ?
warning:         ...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua(1910): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua:1871>
warning: Deprecated function GetUnitBeingBuilt called at
warning: stack traceback:
warning:         ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(3953): in function `GetUnitBeingBuilt'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(129): in function `GetFactoriesBuildingCategory'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(144): in function <...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua:143>
warning:         (tail call): ?
warning:         ...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua(1910): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua:1871>
warning: Deprecated function GetUnitBeingBuilt called at
warning: stack traceback:
warning:         ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(3953): in function `GetUnitBeingBuilt'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(129): in function `GetFactoriesBuildingCategory'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(144): in function <...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua:143>
warning:         (tail call): ?
warning:         ...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua(1910): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua:1871>
warning: Deprecated function GetUnitBeingBuilt called at
warning: stack traceback:
warning:         ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(3953): in function `GetUnitBeingBuilt'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(129): in function `GetFactoriesBuildingCategory'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(144): in function <...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua:143>
warning:         (tail call): ?
warning:         ...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua(1910): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua:1871>
warning: Deprecated function GetUnitBeingBuilt called at
warning: stack traceback:
warning:         ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(3953): in function `GetUnitBeingBuilt'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(129): in function `GetFactoriesBuildingCategory'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(144): in function <...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua:143>
warning:         (tail call): ?
warning:         ...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua(1910): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua:1871>
warning: Deprecated function GetUnitBeingBuilt called at
warning: stack traceback:
warning:         ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(3953): in function `GetUnitBeingBuilt'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(129): in function `GetFactoriesBuildingCategory'
warning:         ...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua(144): in function <...r\gamedata\lua.nx2\lua\sim\factorybuildermanager.lua:143>
warning:         (tail call): ?
warning:         ...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua(1910): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\platoon.lua:1871>
psiggy
Crusader
 
Posts: 24
Joined: 23 Jul 2015, 19:38
Has liked: 0 time
Been liked: 2 times
FAF User Name: psiggy

Re: Patch 3644 performance issues with AI

Postby Sheeo » 28 Jul 2015, 12:03

Thanks for the report psiggy. We should be able to fix the issues showing up in your log in the next patch, I'm tracking this on github here: https://github.com/FAForever/fa/issues/831
Support FAF on patreon: https://www.patreon.com/faf?ty=h

Peek at our continued development on github: https://github.com/FAForever
Sheeo
Councillor - Administrative
 
Posts: 1038
Joined: 17 Dec 2013, 18:57
Has liked: 109 times
Been liked: 233 times
FAF User Name: Sheeo

Re: Patch 3644 performance issues with AI

Postby AwarE » 29 Jul 2015, 13:15

I am also seeing performance issues with the AI. When testing a 10x10 TeamPlay_AI map I am seeing -8 game speed. I have never seen a negetive speed before during testing. It took 2hours real time to get to 50mins game time. My game.log is massive.
Here is part of it.
Code: Select all
warning: Deprecated function GetUnitBeingBuilt called at
warning: stack traceback:
warning:         ...gramdata\faforever\gamedata\lua.nx2\lua\sim\unit.lua(3953): in function `GetUnitBeingBuilt'
warning:         ...forever\gamedata\lua.nx2\lua\sim\engineermanager.lua(582): in function `GetEngineersBuildingCategory'
warning:         ...forever\gamedata\lua.nx2\lua\sim\engineermanager.lua(567): in function `GetNumCategoryBeingBuilt'
warning:         ...data\lua.nx2\lua\editor\unitcountbuildconditions.lua(719): in function <...data\lua.nx2\lua\editor\unitcountbuildconditions.lua:703>
warning:         (tail call): ?
warning:         ...\gamedata\lua.nx2\lua\sim\brainconditionsmonitor.lua(306): in function <...\gamedata\lua.nx2\lua\sim\brainconditionsmonitor.lua:304>
warning:         (tail call): ?
warning:         ...mdata\faforever\gamedata\lua.nx2\lua\sim\builder.lua(175): in function `BuilderConditionTest'
warning:         ...mdata\faforever\gamedata\lua.nx2\lua\sim\builder.lua(213): in function `CheckBuilderConditions'
warning:         ...mdata\faforever\gamedata\lua.nx2\lua\sim\builder.lua(127): in function `GetBuilderStatus'
warning:         ...aforever\gamedata\lua.nx2\lua\sim\buildermanager.lua(232): in function `GetHighestBuilder'
warning:         ...forever\gamedata\lua.nx2\lua\sim\engineermanager.lua(894): in function `AssignEngineerTask'
warning:         ...forever\gamedata\lua.nx2\lua\sim\engineermanager.lua(877): in function <...forever\gamedata\lua.nx2\lua\sim\engineermanager.lua:874>


and from replay.log
Code: Select all
warning: Error running OnPaused script in Entity url0208 at 2c013208: ...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1746): attempt to call method `GetUnitBeingBuilt' (a nil value)
         stack traceback:
            ...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1746): in function <...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua:1741>
warning: Error running OnPaused script in Entity url0001 at 14c32108: ...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1957): attempt to call method `GetUnitBeingBuilt' (a nil value)
         stack traceback:
            ...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1957): in function <...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua:1954>
warning: Error running OnUnpaused script in Entity url0001 at 14c32108: ...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1963): attempt to call method `GetUnitBeingBuilt' (a nil value)
         stack traceback:
            ...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1963): in function <...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua:1961>
warning: Error running OnUnpaused script in Entity url0208 at 2c013208: ...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1753): attempt to call method `GetUnitBeingBuilt' (a nil value)
         stack traceback:
            ...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(1753): in function <...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua:1750>
AwarE
Priest
 
Posts: 306
Joined: 28 Oct 2011, 15:12
Has liked: 0 time
Been liked: 14 times
FAF User Name: AwarE

Re: Patch 3644 performance issues with AI

Postby Sheeo » 29 Jul 2015, 16:22

With the latest tip of develop this should be mitigated, thanks for the reports.
Support FAF on patreon: https://www.patreon.com/faf?ty=h

Peek at our continued development on github: https://github.com/FAForever
Sheeo
Councillor - Administrative
 
Posts: 1038
Joined: 17 Dec 2013, 18:57
Has liked: 109 times
Been liked: 233 times
FAF User Name: Sheeo

Re: Patch 3644 performance issues with AI

Postby khasmir » 31 Jul 2015, 19:13

Is there a time frame when this will be fixed?
With previous update AI was broken, been a while since I have been able to have some fun against AI.
khasmir
 
Posts: 2
Joined: 31 Jul 2015, 19:10
Has liked: 0 time
Been liked: 0 time
FAF User Name: khasmir

Re: Patch 3644 performance issues with AI

Postby Sheeo » 31 Jul 2015, 20:40

I pushed a hotfix today for 3644, but its not up for 3645 yet.
Support FAF on patreon: https://www.patreon.com/faf?ty=h

Peek at our continued development on github: https://github.com/FAForever
Sheeo
Councillor - Administrative
 
Posts: 1038
Joined: 17 Dec 2013, 18:57
Has liked: 109 times
Been liked: 233 times
FAF User Name: Sheeo

Re: Patch 3644 performance issues with AI

Postby khasmir » 01 Aug 2015, 01:41

I'm a bit confused, where can I find this hotfix?
The AI has been neutered for a while now, please fix it asap ;)
khasmir
 
Posts: 2
Joined: 31 Jul 2015, 19:10
Has liked: 0 time
Been liked: 0 time
FAF User Name: khasmir


Return to Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest