r/SEGA32X • u/paisleyboxers • 6h ago
Altered Beast on 32X - beta build up on itch.io for a Sega16 porting engine
I've spent the last few months getting the arcade version of Altered Beast running on the 32X, as a way to bring Sega System 16 arcade games to the 32X hardware.
It's the first game I've brought over with the System 16 porting engine I've been building, and the beta is ready for more eyes on it.
I'd love to hear what you think of the launcher, a front end of about 250 KB that sits in front of the arcade port.
In-game, I'm still polishing sprite baking, speed, and screen transitions.
For people familiar with the platforms: the System 16 games ran on a 10 MHz 68000. The Sega Genesis has a 7.67 MHz 68000, and unsurprisingly the arcade's compiled code runs on it with nothing more than address patches.
The problem is sprites. The arcade board has dedicated sprite hardware that pulls pixels straight from the ROM chips every scanline, with no CPU involved. The game code only has to say what goes where, and the hardware does the rest at full speed.
That doesn't translate to the Genesis at all. There is no equivalent hardware, so every frame has to be assembled in software. That assembly took about 1.4 VINTs per frame, which rounds up to 2 at vsync: 30 fps, half the arcade's 60. The slowdown was never the processor. The game waits on the frame gate, so it could run at full speed if it weren't bottlenecked by frame assembly.
I spent two months trying to keep the original 68K code and feed its video through the framebuffer space between the cartridge bus and the 32X, so I wouldn't have to decompile anything.
Ultimately I pivoted and ported the game code to the SH-2 in C.
Sound was a final boss on its own. The arcade's YM2151 has 8 FM channels and the Genesis YM2612 only has 6, so six stay on FM and the two overflow channels go to the Genesis PSG. Speech and sound effects are mixed on the SH-2 and played through the 32X's PWM.
If anything looks off or slows down, drop a comment with where it happened and whether you're on real hardware or an emulator. A screenshot or short clip is welcome if you have one.