Copy link to clipboard
Copied
Windows 10/ Photoshop 2021/ no plugins
This isn't a bug, per se, because I believe they are doing this for optimization reasons, but the use case for my scenerio is out of the normal range. I have an action that works on a folder of thousands of images, one at a time. While the action is running it has to perform many copy and pastes to the clipboard and each of these are held in memory on the scratch disk. This, I imagine, is so you might need clip board data in between two different files you open sequentially. However, the clip board data that I use, need not be persistant, but it is exponentially filling up the scratch disk, and I am starting out with over 200GB of free space. I even unchecked the "Export Clipboard" in preferences and I incorporated the >Edit >Purge >Cache All function within the action but neither helped. The only way it releases the memory is if I close down the Photoshop application, which means I am doing this every 50th image or so, not good if I am processing thousands. Our only solution right now is we went back to an older version of Photoshop that doesnt hold onto this cached clipboard data.
To test: Find a folder for a test with numerous images of a large size (like 500mb files), make a duplicate of that folder so you don't damage any good work, make an action that opens a file, Select All Ctrl-A, Copy to clipboard numerous times, try 10 times, do something non-destructive like make a blank layer and flatten, so it will save out the file again. Now run the action as a batch on your test duplicated test folder from above. Watch your memory usage in resmon.exe climb through the roof with every tile it attempts to run the action on.