reducing memory usage when exporting

I've got an issue with ModelIO using over 2gb of ram to export a 400mb file.


My app (3d sculpting) tends to produce big meshes. For simple file formats (obj, stl) I use my own code and stream out the data, keeping usage very low.


But for a complex format like USD, I use modelIO. Wondering if there's any way I can reduce memory usage.


I've already tried using memory mapping for the vertex and index data (NSDataReadingMappedAlways), but it doesn't seem to help.

Replies

600mb