Darwinbots Forum
Code center => Bugs and fixes => Topic started by: shvarz on March 31, 2008, 03:15:35 PM
-
I thought "delta" at the bottom of the sim shows the difference in the total amount of energy in the sim from cycle to cycle.
But I noticed in my sim that the actual changes in the total amount of energy (also reported at the bottom of the sim and the delta values don't match up. The delta is showing as ~2500, while the total energy in the sim goes up by only ~500. Am I misunderstanding something or is this a bug?
Sim is attached.
-
The way the current delta works, it's the delta between the nrg of the current cycle and the averge nrg of the past 10 cycles. This code was intended to address issues where the infobar got updated by the seconds timer mid-way through the cycle but it's not as useful as giving an actual cycle to cycle delta, particularly if your trying to tune the sim nrg flow. So, in 2.43.1g, I've changed it so that the delta is what you would expect - the actual delta in nrg between the current cycle and the last cycle. Things should add up now if you are single cycle stepping through a sim execution.