KSP2 is Spamming the Windows Registry Over Weeks/Months Until the Game Will Stop Working Permanently

nanoUFO@sh.itjust.worksmod to Games@sh.itjust.works – 107 points –
forum.kerbalspaceprogram.com
37

You are viewing a single comment

Thats fucking amazing and completely unity's fault. What engine in their right mind saves user preferences in the registry?

Saving user preferences in the local user part of the registry is kind of what the registry is meant to be for (besides others).

It might be bad practice to dump 1.3GB of variable user data into the registry, though. Especially when there's SQL servers and Nuget packages that can deal with that kind of data in a platform-agnostic way.

That for sure, those numbers are way beyond intended usage.

And there is a difference between saving user preferences/settings and user game data. The last should never be saved in the registry.

You'd be surprised to learn then that a lot of software does this shit.

Well thats stupid

It can be very stupid. Depends on the software though as the registry is meant for saving user and system settings to a degree. Like Windows File Explorer makes perfect sense. As does settings for audio.

It's generally advised to not bloat the registry wherever possible. WinSCP is a great piece of software. Unfortunately it defaults to saving to the user registry. You can change it to save to an ini file instead. By using the registry to save settings it can be jarring for the user when they're trying to troubleshoot something. Only to find out after uninstalling and reinstalling it doesn't start over fresh. Or if they're trying to backup settings and data to restore with later. The registry isn't typically included for good reason.

It doesn't look like what's filling the registry here is user preferences.