[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[bos-dev] [bug #41967] Resource Usage Not Exact



Follow-up Comment #1, bug #41967 (project stratagus-bos):

adaptive-rates-1.diff makes resource spending and harvesting rates adaptive. 
This patch isn't perfect, but it almost always fails safely.  Meaning it never
needs more than expected costs to build or train something and will never
harvest less than expected.  However, it may finish building early or harvest
more than expected.  

New Issues:

Issue 1) Buildings are completed one step early.  Example:  A power station
requires 900 energy and 150 magma and that's all the resources a payer has. 
An engineer builds it at a rough rate of 40 energy and 11 magma.  However the
power station will be completed with 40 energy and 11 magma left in storage
instead of the expected zero resources left.  This is safer than the previous
behavior (being unable to finish due to running out of magma), but is still
incorrect.  


Unresolved Issues:

Issue 1) Putting more engineers on a repair job changes the amount of
resources used for the job (reduces the amount of non-primary resources
needed).  

Issue 2) When efficiency isn't at 100% resource usage can be off due to
rounding.

(file #31135)
    _______________________________________________________

Additional Item Attachment:

File name: adaptive-rates-1.diff          Size:10 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?41967>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/