Deletes the framebuffer from GPU memory.
Calling myBuffer.remove()
frees the GPU memory used by the framebuffer. The framebuffer also uses a bit of memory on the CPU which can be freed like so:
// Delete the framebuffer from GPU memory.
myBuffer.remove();
// Delete the framebuffer from CPU memory.
myBuffer = undefined;
Note: All variables that reference the framebuffer must be assigned the value undefined
to delete the framebuffer from CPU memory. If any variable still refers to the framebuffer, then it won't be garbage collected.
Examples
Syntax
remove()
Parameters
Related References
textToContours
Returns an array of arrays of points outlining a string of text written using the font.
textToModel
Converts text into a 3D model that can be rendered in WebGL mode.
textToPaths
Returns a flat array of path commands that describe the outlines of a string of text.
textToPoints
Returns an array of points outlining a string of text written using the font.