|Anonymous | Login | Signup for a new account||2013-12-07 03:52 PST|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006012||Dwarf Fortress||Dwarf Mode -- Items||public||2012-06-12 00:14||2013-10-27 17:52|
|Target Version||Fixed in Version|
|Summary||0006012: Temperature updates for items in containers never stabilize.|
|Description||Items are supposed to reach the temperature of the environment within reasonably short time, and cease being updated. Instead, the process reaches a boundary 1 temperature unit away from the environment and never progresses further, thus forcing updates to continue forever.|
The issue is caused by interaction between update from environment, and update from other items in the container. The container temperature update is done in a vmethod that performs the following steps (assuming environment temp is 10015, and the bin is 10016):
1. Average temperature for all items in bin is computed: 10016
2. Items are updated from environment 10015; the delta amounts to -0:001, moving them to 10015:499.
3. Items are updated from the average 10016; the delta is +0:001, restoring the original temp.
4. Bin is updated from average 10016, reaching 10016.
5. Bin is updated from environment, returning to 10015:499.
(the notation is "temperature:fraction")
The end state is exactly equivalent to the initial, yet the needs update flag is confirmed.
|Steps To Reproduce||Find a bin with items underground and set all temperatures to 10100. Observe them quickly reach 10016 (assuming environment is 10015) and stop there. The bin itself will stop at 10015:499, or whatever the right fraction for it will be.|
|Additional Information||My profiling of a few large forts suggests that temperature updates for items are the topmost source of lag there, along with unit temperature updates, unit friend-or-foe checks, and pathfinding; so I think this issue warrants attention.|
A similar problem may exist with spatters on items, but I didn't investigate closely.
|Tags||No tags attached.|
|2012-06-12 00:14||ag||New Issue|
|2013-10-25 12:51||Kercso||Issue Monitored: Kercso|
|2013-10-27 17:52||Footkerchief||Issue Monitored: Toady One|
|Copyright © 2000 - 2010 MantisBT Group|