Close

ProgressiveUnloader Class

The ProgressiveUnloader class describes a specific instance of the COMP.progressiveUnload() method of a COMP. Methods and members of this class are used to obtain progress information about the underway progressive unload operation, or modify it.

n = op('comp1')

# Check if comp1 is progressively unloading
n.progressiveUnloader.active

# Get the total number of frames since comp1 has been progressively unloading
n.progressiveUnloader.elapsedFrames

# Terminate comp1's progressive unloading
n.progressiveUnloader.kill()


Members

activebool (Read Only):

Returns true if progressive unloading is underway

remainingNodesfloat (Read Only):

Returns the remaining nodes to be unloaded. Returns 0 if progressiveUnload() has not been called at all for this component

nodesUnloadedfloat (Read Only):

Returns the number of unloaded nodes. Returns 0 if progressiveUnload() has not been called at all for this component

lastFrameUnloadTimefloat (Read Only):

Returns the unload time (in milliseconds) of the latest frame. Returns 0 if progressiveUnload() has not been called at all for this component

averageFrameUnloadTimefloat (Read Only):

Returns the average unload time (in milliseconds) across all previous frames. Returns nan if progressiveUnload() has not been called at all for this component

gpuMemUnloadedfloat (Read Only):

Returns the total gpuMemory (in MB) that has been unloaded. Returns 0 if progressiveUnload() has not been called at all for this component

elapsedFramesfloat (Read Only):

Returns the elapsed frames since progressive unloading started. Returns 0 if progressiveUnload() has not been called at all for this component

Methods

kill()None:

Terminate the progressive unloading operation.

TouchDesigner Build: