renderer.module
This package holds more than this page lists. See all of its files in its world.
README.md
renderer.letGo
The watch that releases a runtime texture, material, mesh or render feature mid-session once no script reaches a handle to it and nothing else holds it. It reads the renderer's handle sets every few dozen frames: a resource whose last handle the garbage collector took joins the watch and is judged against the runtime resource census, by the holders renderer.collect reads, and released once nothing holds it. A resource kept only by the component or scene load that created it stays while that owner does, and the log names an owner once it holds 64 of one kind that way, and again each time that count doubles. A render feature holds what it created through the handles it keeps and the passes it queues, which the census names as references, so a target whose handle the feature dropped and that none of its passes names any more is released while the feature stands. A texture or mesh the asset path uploaded under its asset's guid waits on the watch while that asset stands, and is judged from its holders once the asset index changes and the asset no longer answers. A texture a released material record named goes on the watch with it, the one the device holds for an asset included: that asset is the path the texture is read back by, so it is released once nothing else names it, the way a collection releases it.
new(host)makes the watch over the handle sets, census and release the renderer hands it inhost, and answers{ start, rejudge, letGo }:start()starts the task that reads the sets unless it is running,rejudge(kind, guid)marks a watched resource due a judgement at the next reading, andletGo(kind, guid)puts a resource a holder other than a handle let go of on the watch.