|
@@ -3173,14 +3173,14 @@
|
|
/**
|
|
/**
|
|
* Clear the processed materials smart array preventing retention point in material dispose.
|
|
* Clear the processed materials smart array preventing retention point in material dispose.
|
|
*/
|
|
*/
|
|
- public resetProcessedMaterials(): void {
|
|
|
|
|
|
+ public freeProcessedMaterials(): void {
|
|
this._processedMaterials.dispose();
|
|
this._processedMaterials.dispose();
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* Clear the active meshes smart array preventing retention point in mesh dispose.
|
|
* Clear the active meshes smart array preventing retention point in mesh dispose.
|
|
*/
|
|
*/
|
|
- public resetActiveMeshes(): void {
|
|
|
|
|
|
+ public freeActiveMeshes(): void {
|
|
this._activeMeshes.dispose();
|
|
this._activeMeshes.dispose();
|
|
if (this.activeCamera && this.activeCamera._activeMeshes) {
|
|
if (this.activeCamera && this.activeCamera._activeMeshes) {
|
|
this.activeCamera._activeMeshes.dispose();
|
|
this.activeCamera._activeMeshes.dispose();
|
|
@@ -3193,6 +3193,12 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Clear the info related to rendering groups preventing retention points during dispose.
|
|
|
|
+ */
|
|
|
|
+ public freeRenderingGroups(): void {
|
|
if (this._renderingManager) {
|
|
if (this._renderingManager) {
|
|
this._renderingManager.freeRenderingGroups();
|
|
this._renderingManager.freeRenderingGroups();
|
|
}
|
|
}
|