Module fyrox_resource::entry

source ·
Expand description

Resource manager timed entry. It holds strong reference for a resource and a simple timer variable. When someone uses a resource, the timer variable is reset to default resource lifetime. Timer gradually decreases its value and once it reaches zero, the entry is deleted. The inner resource might still be in use (have a strong reference to it), the resource data will be deleted once no one uses the resource.

Structs§

  • Resource container with fixed TTL (time-to-live). Resource will be removed (and unloaded) if there were no other strong references to it in given time span.

Constants§

  • Lifetime of orphaned resource in seconds (with only one strong ref which is resource manager itself)