NSPersistentUIWindowSnapshotter

Does anyone know what NSPersistentUIWindowSnapshotter is for?

I am seeing stutters in my frame rate, and it coincides with high CPU usage in that class.

I have not been able to find any documentation on it.
Is there a way to opt out of these snapshots?

Also: I tried to attach a screenshot of Instruments highlighting the issue, but I don't seem to be able to add images to forum posts?
Hi! It's a windows persistence feature. I'm able to disable it using the private _disableRestorableStateWriting method of NSApp. There is a checkbox in Interface Builder for Window called "Restorable" but unchecking it didn't prevent NSPersistentUIWindowSnapshotter's methods from calling and using a lot of CPU.

Maybe someone else will find some public API, but I have found only observing functions.
NSPersistentUIWindowSnapshotter
 
 
Q