Critical Cleanup Event Data
renderer.on('criticalCleanup', (data) => { console.log(`Memory cleanup triggered!`); console.log(`Memory used: ${data.memUsed} bytes`); console.log(`Critical threshold: ${data.criticalThreshold} bytes`);}); Copy
renderer.on('criticalCleanup', (data) => { console.log(`Memory cleanup triggered!`); console.log(`Memory used: ${data.memUsed} bytes`); console.log(`Critical threshold: ${data.criticalThreshold} bytes`);});
Critical threshold (bytes)
Memory used before cleanup (bytes)
Critical Cleanup Event Data
Example