I didn’t do any speccy hacking, but the C64 was IMO amazing in the regard. The way you could reprogram the VIC each horizontal line into different video modes, changing the screen width to make borders disappear, the way you could disable the kernal ROMs to expose more DRAM etc.
But all machines of that era were so low level with plenty of tricks to exploit.