I just got an error that my scratch disk is full. As I checked, there were three Photoshop temp files in there, although I have plenty of RAM available (about 40GB). Even after starting Photoshop with no file open, a temp file is immediately created. What's that about?
Here's a screenshot of the three temp files ...
I also don't have the same issues as the OP.By @kevin stohlmeyer
There are quite a few to go over, so I suspect there's far more at issue here than just Temp files and how they work:
As for "stuttering", I don't have any such issues either. Having access to a "stuttering" document to test would be the next step.
They are removed, when I close Photoshop. I never said that they are staying. But they are getting more throughout the use of Photoshop. There seems to be a block limit of 16GB for them.
And I can see them, because I have enabled windows to show hidden files and system files. You might not see them on a restricted setup of Windows.
Again, these are perfectly standard scratch files, required for Photoshop to work efficiently. If you didn't have them, you would have a whole lot more performance problems.
If you have performance issues, this is not the reason!
It should be said that a disproportionately high share of users with Ryzen systems have reported diffuse performance issues. This seems to be specific to Ryzen. Engineers have previously said that they really want to get to the bottom of this, but they need reproducible cases. So I think this should be reposted to the Bugs section - include as much system information as possible, crash reports if applicable, steps to reproduce with precise descriptions if possible.
You haven't said what GPU, but if it's an integrated AMD GPU that could be the problem. So much Photoshop operations are performed in the GPU nowadays, and so many advanced functions are called, that driver issues could give very diffuse problems.
The GPU is an RTX 3060 with 12GB. So that's not the reason either. Maybe it's the Ryzen CPU. Let's wait and see if the developers can get on top of that.
Again RAM is not scratch disk. Stop comparing the CPU - the "scratch disk is full" error indicate disk space not RAM or CPU.