nstlaurent / DoomLauncher

Doom Launcher is a doom launching utility and database for custom wads and pk3s
GNU General Public License v3.0
225 stars 19 forks source link

[Feature Request] separate "Temp" folder for unpacking. #263

Open CortexReaver opened 2 years ago

CortexReaver commented 2 years ago

So people can store mods on SSD, and unpack them, for example on a RAM disk (or hdd).

CortexReaver commented 1 year ago

Or may be an option for unpacking them directly in RAM. Most people got plenty of memory nowadays, there is no excuse not to use it. But I think it might be much harder to implement then I think, so just a separate directory for "Temp" will be enough, with a RAM disk created by a third-party application.

nstlaurent commented 1 year ago

It's not really possible to put them in RAM and have source ports use them. I don't understand what the point would be anyway. The hard drive is for files.

CortexReaver commented 1 year ago

Constant unpacking reduces SSD lifespan, that's why. Especially when some of the mods can reach gigabytes. Many users do not even have HDD's anymore.

nstlaurent commented 1 year ago

Every PC I have owned in the past 10 years has had an SSD and I've never had one run out of writes. I trashed on a work laptop 5 days a week for six years building development code, ran SQL server constantly writing to the SSD and god knows what else. The video card failed before the SSD ran out of writes.

There is an easy solution for you in Doom Launcher already. You can run them unmanaged and they will never get copied by Doom Launcher.

CortexReaver commented 1 year ago

If I use "unmanaged" with zip files and put the "Game file directory" on a RAM disk - will it work like I want? (Because I don't think so - Doom Launcher stores save files in this folder, I'll be unable to save in this case). You can at least make an option for unpacking them into "User temp directory" or "Windows temp", so it will be easy to clean.

nstlaurent commented 1 year ago

It should. I will see what it will take to make the temp folder a separate option.

nstlaurent commented 1 year ago

Actually, couldn't you put just the temp directory in game files as a ram disk?

CortexReaver commented 1 year ago

I get it working, have to create a symbolic link by command line with a "/D" key. So if anyone's Interested in how to redirect your temp folder in Windows: open command prompt from folder containing your mods and type mklink /D Temp *path to a desired folder* Idk why it won't work the first time for me.