Debloating VICE package for leaner C64 emulation
category: general [glöplog]
VICE has long been seen as the ultimate, best and most accurate Commodore 64 emulator, or at least, the ultimate 8-Bit Commodore emulation suite, but what always bothered me was the sheer size and number of different emulators available when all I really want to do is to emulate the C64.
I'm looking at the various subfolders of VICE and I see the "bin" folder which must contain all of the main emulator code itself, fine, that can stay, then there's the individual system folders, and I will keep the C64 for sure, and I will probably leave the rest available.
The main folder that puzzles me is the "share" folder. What does that contribute, and is it necessary? It seems to be for something called "Adwaita", which I've never heard of, and it consists of SVG files which are basically vector graphic icons, and it is by far the biggest concentration of files in the whole VICE package. Do I really need that, or can I just go ahead and delete it?
I'm looking at the various subfolders of VICE and I see the "bin" folder which must contain all of the main emulator code itself, fine, that can stay, then there's the individual system folders, and I will keep the C64 for sure, and I will probably leave the rest available.
The main folder that puzzles me is the "share" folder. What does that contribute, and is it necessary? It seems to be for something called "Adwaita", which I've never heard of, and it consists of SVG files which are basically vector graphic icons, and it is by far the biggest concentration of files in the whole VICE package. Do I really need that, or can I just go ahead and delete it?
Are you sure a meg of icons is the main problem and not 100MB of DLL dependencies?
Its the GTK Theme, so it is pretty much required, unless you hate icons so much that you want the UI to be completely without them :)
You can remove the individual .exe files, and the respective directory in DATA - that's it basically (if you are really desperate also remove the DRIVE and PRINTER ROMs you don't use, it might save another 50k or so)
So yes, what Gargaj said. And it can't be fixed easily (*). If size really is the problem for you, use the SDL port. Disable a bunch of features and build a statically linked Windows binary in MSVC, that saves quite a bit of size (for the individual .exe anyway).
(*) build the headless version and create your own frontend for it. This is what the long term goal is anyway - but it will still take a while for that to happen.
You can remove the individual .exe files, and the respective directory in DATA - that's it basically (if you are really desperate also remove the DRIVE and PRINTER ROMs you don't use, it might save another 50k or so)
So yes, what Gargaj said. And it can't be fixed easily (*). If size really is the problem for you, use the SDL port. Disable a bunch of features and build a statically linked Windows binary in MSVC, that saves quite a bit of size (for the individual .exe anyway).
(*) build the headless version and create your own frontend for it. This is what the long term goal is anyway - but it will still take a while for that to happen.
PS: Depending on what you actually want to do there, you can just use HOXS64. It has much less features, however compatibility is about the same. And it is a single Windows .exe.
Thanks for all the info, people! I was just curious what my options were in trying to cut down VICE. I thought of alternatives but I wanted to stick to the comprehensive command-line options of VICE, as well as the flip list feature.
I think VICE being the best C64 emulator these days is debatable. It depends on what you're after. For coding VICE is up there for sure, and for that it's still my default, though I know others prefer f.ex. RetroDebugger (which is VICE-based, admittedly). For just watching demos I prefer something like Denise, which unlike VICE is actually capable of feats like proper smooth 50 FPS screen refresh, and provides much better CRT simulation to boot.
That said, a lot of the code in Denise is nicked from VICE :)
(proper smooth 50Hz refresh should be no problem in VICE either, it works even on my 10 year old Windows craptop)
(proper smooth 50Hz refresh should be no problem in VICE either, it works even on my 10 year old Windows craptop)
Quote:
(proper smooth 50Hz refresh should be no problem in VICE either, it works even on my 10 year old Windows craptop)
I don't know anything about Windows, but I've never managed to achieve anything remotely smooth on any of my machines, neither with GTK or SDL VICE. With Denise on the other hand it just works out of the box, particularly with the 99.75% speed option.
Preferences->Emulation Speed->50Hz (using a 50Hz Screenmode obviously)
Yeah, I never got it working; always the odd jutter or frameskip. I could get it decent, but never fully smooth.
Mind, after thinking I just realised it's probably been ~10 years since I last tried running VICE on a 50 Hz screen, so it actually can have gotten a lot better. Now that I've thought some more about it, when I used Windows 20 years ago I could indeed run VICE in 50 Hz full screen and it worked great, so I chalked it down to issues with the SDL and GTK versions at the time.
Mind, after thinking I just realised it's probably been ~10 years since I last tried running VICE on a 50 Hz screen, so it actually can have gotten a lot better. Now that I've thought some more about it, when I used Windows 20 years ago I could indeed run VICE in 50 Hz full screen and it worked great, so I chalked it down to issues with the SDL and GTK versions at the time.
lol 10 years ago it was complete crap, indeed :D
