urt-rs / docs /research /RUST_ENTITY_EVENT_EXPIRY.md
nmarshall's picture
gameplay: port per-entity event expiry
6a5d1d8
|
Raw History Blame Contribute Delete
782 Bytes

Entity event expiry in Rust

expire_entity_event applies the event-age slice to a fixed-pool record and its optional client event word. It clears expired events, delegates temporary records to the entity release routine and emits standalone unlink requests when the corresponding flag is set. Its dispatch result tells the caller whether to continue with this entity. Typed missing-client or unresolved-object errors leave both records untouched.

The parity report checks all 30 source cases, including the exact threshold, signed clock wrapping, free before unlink, protected records and zero-event behavior. The focused check also reruns the underlying entity release parity. The caller supplies frame timing and carries out engine requests.