Resource
Resource Management
Most resources in the framework are reference counted. Optional resource caching takes place in the engine resource loading code to minimize disc transfer and memory usage.
The script VM holds strong reference to a resource. A resource cannot be freed as long as a script VM holds a reference to it.