<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fparkan/crates/fparkan-runtime/src/behavior_clock.rs, branch trunk</title>
<subtitle>Utilities and tools for the game "Parkan: Iron Strategy".
</subtitle>
<id>https://git.popov.link/fparkan/atom?h=trunk</id>
<link rel='self' href='https://git.popov.link/fparkan/atom?h=trunk'/>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/'/>
<updated>2026-11-25T14:57:03+00:00</updated>
<entry>
<title>fix(research): update laboratories on the native Behavior timer</title>
<updated>2026-11-25T14:57:03+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T14:57:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=f0e3a84cf5c0d7a0edd890c303299306c513ba8b'/>
<id>urn:sha1:f0e3a84cf5c0d7a0edd890c303299306c513ba8b</id>
<content type='text'>
Active laboratory work now uses the owner task timer instead of consuming
and clearing its ore buffer on every host frame. The native 1/1 timer waits
for a clock strictly beyond its deadline, draws one Behavior RNG value, and
reschedules 64..127 ms from the observed clock. Resource distributors reuse
the same deadline arithmetic with their existing 3/1 parameters.

Behavior.dll 0x4c550 calls verify deadlines, equality, late calls and RNG
state. The original laboratory was sampled through 20 bounded debugger
hits; its caller uses the owner +0x930 timer initialized at 0x398f. A second
native task fixture uses the original ore getter/setter and confirms that
the buffer really is cleared, ruling out the host callback interpretation.

Workspace fmt/check/tests, the licensed stock research chain, all 29
missions at 900 seconds and a live Vulkan window check pass. The active-only
clock still reports script_lab_clock_approx: idle owner phases and full
native event/RNG ordering remain open. Factory selection 69 and query 65
still need Control prototype metadata. This does not close G7.
</content>
</entry>
</feed>
