Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Imperial Stockpile #1607
Parts of this PR draw heavily on the initial Imperial Stockpile work done by @agrrr3 in #1229 , though as discussed some on our forums I have taken a different path in some areas, and then of course a lot of work was needed on the projections code. There are also a few things that agrrr3 had put into his branch that I haven't adapted here, my main goal was to get the basic Imperial Stockpile working properly with accurate projections, which this does.
As noted in #1606 the reorganization of the projections code that this relies upon drastically slows down the projections. So far it has still seemed reasonable to me, but for larger empires or with many AIs this may be a more noticeable problem. If you want to check how long projections are taking you can search your freeorion.log (or an AI log) for the phrase
I am contemplating that I might try implementing a mixed-mode for projections, wherein any resource groups that do not have any items queued with them that are enabled for the imperial stockpile would rely on the tremendously faster dynamic programming approach for projections. Alternatively, I also have some thoughts on how I might possibly be able to pursue a dynamic programming approach even for items enabled for the stockpile, but I am not ready to tackle that just yet.
referenced this pull request
Aug 4, 2017
The underlying basic Production Queue reorg PR has been cleaned up and merged to master, which introduced a couple conflicts, and there were several other conflicts with recent developments in master as well, so I've cleaned all that up and rebased this PR....