It might be your hardware having been running hotter than it should but in addition to that clean out the inside of the case to remove dust and check...
so I checked out that registry compression tool I see a slight improvement but my registry wasn't that bad. I was playing no mans sky earlier before...
I usually defrag regularly(as in multiple times a week) I use auslogics I also use a reg cleaner whenever I uninstall and sometimes after I install....