IridiumIO / CompactGUI

Transparently compress active games and programs using Windows 10/11 APIs
GNU General Public License v3.0
5.13k stars 238 forks source link

More than once instances of CompactGUI needed #396

Closed utmuk closed 9 months ago

utmuk commented 9 months ago

It would be nice to be able to open more instances of the program than one. Right now even if you make a copy of the executable with different name and location you can't open it while first instance is running. It would speed up things when there are more than 1 drives with files to process and a decent CPU

Iridium-IO commented 9 months ago

This was too big of a headache back in version 1.0 (people trying to have multiple instances running and clunking to a stop or crashing / corrupting things) so it was an intentional decision to only have one instance. I might toy with the idea of making it an advanced option but it's such a niche use case.

If you're a power user, I strongly recommend using the command line instead :)

NeoCyrus commented 9 months ago

Please consider it as an advanced option. Without multiple instances, I can't even right click to use it if it's monitoring folders. And I like having multiple compress at once anyway.

Iridium-IO commented 9 months ago

You should be able to right click to use it now at least, I fixed that recently

NeoCyrus commented 9 months ago

Thanks, good to know. As for multiple instances open, as an option to enable, just leave a very clear warning saying not to use it unless the user knows what he's doing. Even with currently using a 5800X3D, only 8 cores, I often have a lot of CPU headroom to compress multiple folders at once.

Iridium-IO commented 9 months ago

I'm not sure how much benefit you'll get anyway, as right now it compresses multiple files in parallel anyway to maximise your CPU usage. If you've got 8 cores and 16 threads, it will try to spin up to 16 files at once for compression to go faster. In fact if you look at an older version of the Readme here, you can see that the old way of doing it was up to 470% slower than the newer parallel system.

But regardless, I'll add an optional feature for this :)

NeoCyrus commented 9 months ago

Very interesting, thanks. One reason the CPU ends up having headroom, seems to be that for certain file types, the SSDs get pushed to 100%. Other times when the SSD has headroom and the CPU still has headroom, I'm not sure.

utmuk commented 9 months ago

I'm not sure how much benefit you'll get anyway, as right now it compresses multiple files in parallel anyway to maximise your CPU usage.

You'll definitely benefit, if you are compressing on more than one drive. HDDs are usually a bottleneck and CPU is not being used to its full

Iridium-IO commented 9 months ago

You'll definitely benefit, if you are compressing on more than one drive. HDDs are usually a bottleneck and CPU is not being used to its full

I completely missed the intent to compress over multiple HDDs, yeah you'd definitely see a benefit there