What is New in MAXScript > What was New in MAXScript in Previous Versions > What was New in MAXScript in 3ds Max 5 > MAXScript Language Improvements in 3ds Max 5 >

# Manual Garbage Collection Light Option

MAXScript Language Improvements in 3ds Max 5

An optional light keyword argument has been added to the manual garbage collection gc() method. When passed as true , the undo buffer will not be flushed - any value that derives from MAXWrapper will not be collected.

The result is that less memory is released and gc runs a bit slower, but you can't corrupt the undo stack.

What does get collected with light:true includes rollouts, floaters, UI items, bitmaps, arrays, and bitArrays.

For more details, please see

Manual Garbage Collection

#### See Also

- MAXScript Language Improvements in 3ds Max 5