Hey everyone,
I wanted to update this thread to state (or confirm, if you follow the discord and youtube updates) that Mimas is abandonned in favor of my other Doom port, Aguzzino.
I know it has been a while since an update on Mimas, my straight port of Doom to the Saturn. Around early September, after I finally got the walls and floors in sync thanks to Fafling's advice, I stopped that port because of its poor performance. Mimas was built on Doom's own renderer, which is made to draw columns of pixels with the CPU. Even with the walls moved to the VDP1, it kept a cost of 25 to 30 ms a frame tied to the screen, before the game did anything. Not all is lost, though: it taught me a lot about the architecture and the limits of the Saturn.
Since then, I've been working on a fork of the open source SlaveDriver engine from Lobotomy Software, the PowerSlave / Exhumed engine (and also Quake and Duke Nukem 3D).
Thanks to Lobotomy Software and Ezra Dreisbach for releasing it.
github.com
The fork is called Aguzzino (Italian for "slave driver", thanks SlyGamer for the idea).
WHY SLAVEDRIVER
PowerSlave draws the whole world with the VDP1, as quads. The two CPUs only work out what you can see and send the quads. So the cost grows with the rooms and walls in view, not with the pixels. In my first measures, one quad cost 39 µs in SlaveDriver, against 64 to 100 µs in Mimas.
WHAT I DID
First the toolchain: the engine was built with Psy-Q in 1996, so I moved it to GCC 14 and SBL 6.01 (thanks to Fafling for the first test on hardware). Then I did a rough conversion of E1M1 and it worked, smoothly. Once it was stable, I added the UI, doors, enemies and basic music, then the whole shareware episode.
Doom's code doesn't run as is. The game rules are rewritten on top of the engine (its collisions, shots, sounds and saves), and they read Doom's own tables for the monster states and timings. The maps go through a converter I wrote. It turns each Doom map into PowerSlave's level format (.LEV), cuts the rooms into convex pieces, works out the drawing order with a BSP tree like Doom does, and cuts the textures into tiles the VDP1 can draw.
The converter now also takes Doom II, Final Doom (TNT and Plutonia), Ultimate Doom, community maps, and the PlayStation Doom maps. The biggest maps need a RAM cart or are cut into sections. There are still some work to be done: some doors, keys, elevetors... that do not behave the way they should and lock the player out, but most works, and it's getting better. It takes me a lot of time, as I have to play, find an issue, understand it, fix it in the converter without breaking anything.
WHAT I CHANGED IN THE ENGINE (so far), AND WHY
- Memory. Doom maps are much bigger than PowerSlave levels. So textures and sprites are in 16 colours with their own palette, wall textures are stored compressed, the texture store moved into free VDP2 memory (129 KB more), and the engine can use a 1 MB or 4 MB RAM cart for the biggest maps.
- Floors. The biggest floor in view is drawn by the VDP2 as a rotating plane, and the sky too. That takes work off the VDP1, which draws everything else.
- Walls close to the camera. The textures warped when you got close to a wall. My first fix cut the walls into more pieces, and it doubled the frame time on the Saturn, so I reverted it. The real fix was in how the engine clips a texture near the eye.
- Lights. Fireballs, shots, teleport fog and Doom's blinking lamps light the walls and floors around them, in colour.
- Multiplayer. Split screen for 2 to 4 players, bots, a horde mode, and online play through the NetLink modem.
- Extras. Gore (bodies burst into chunks, blood on walls and floors) and rain.
- Speed. Most of the work is measuring on a real Saturn and cutting what costs. In my measures, a view in PowerSlave holds 15 to 81 sectors, a view in a converted Doom map 106 to 124.
HOW FAST IS IT?
The frame rate is capped at 30 fps. On a real Saturn, the shareware maps run at about 20 to 25 fps, with dips in big rooms and fights. E4M2 sits around 20 fps, with dips under 10 at both ends of the big room. Split screen with 3 players is around 10 to 12 fps, but that's expected.
A question you might ask yourself is how it compares to the official Saturn Doom from 1997. In September I captured both on my NTSC Saturn, E1M1 to E1M3 in ultra-violence: about 12 new frames a second for retail, 21 to 23 for mine.
THE LAST UPDATE VIDEO
It shows the demo: online games with bots, co-op, and the horde mode. The horde is endless waves made from the map's own monsters: pack leaders that glow, stone grey tanks with 250 % health, fast waves, and only one life. My best run on the console was 16 waves, almost 22 minutes, before an imp got me. Post your score!
THE DEMO
You can play it now: the nine maps of the shareware episode, with music and sounds, alone, with bots, in split screen or online.
github.com
- AguzShareware18.zip: the disc alone, for a real Saturn or any emulator. No RAM cart needed.
- The Mednafen packages for Windows and macOS (Apple Silicon only): Mednafen 1.32.1 with an emulated NetLink modem, ready to play online. You need your own Saturn BIOS.
Online goes through my relay in France. A game starts when 4 players are in, or 30 seconds after the last one joined, and a bot takes a free place. Everyone needs the same disc: the calling screen says DISC SW18. So far, online has only been played on emulators.
The demo has been downloaded more than 100 times already, and played 14 times online.
If that was you, many thanks!
NOTES
- Saroo has known bugs with this port (like disappearing textures), that I still have to look into.
- Analog is too sensitive in this version. I'll reduce it for next, and add a sensitivity parameter in the option
- First playtester informed me that turning felt "jerky". I think I found the issue, it should be fixed in the next version.
- A Saturn mouse can be used if plugged in port2
- I plan to release the WAD converter later on, to let everyone convert their favorite WADs into Saturn Disks.
- Multiplayer can be played with bots (local and online).
- Online has a latency, it's experimental.
If something goes wrong, open an issue on the repo, or let me know here or on discord.
Have fun!
I wanted to update this thread to state (or confirm, if you follow the discord and youtube updates) that Mimas is abandonned in favor of my other Doom port, Aguzzino.
I know it has been a while since an update on Mimas, my straight port of Doom to the Saturn. Around early September, after I finally got the walls and floors in sync thanks to Fafling's advice, I stopped that port because of its poor performance. Mimas was built on Doom's own renderer, which is made to draw columns of pixels with the CPU. Even with the walls moved to the VDP1, it kept a cost of 25 to 30 ms a frame tied to the screen, before the game did anything. Not all is lost, though: it taught me a lot about the architecture and the limits of the Saturn.
Since then, I've been working on a fork of the open source SlaveDriver engine from Lobotomy Software, the PowerSlave / Exhumed engine (and also Quake and Duke Nukem 3D).
Thanks to Lobotomy Software and Ezra Dreisbach for releasing it.
GitHub - Lobotomy-Software/SlaveDriver-Engine: SlaveDriver Engine for Sega Saturn GPL Source Code
SlaveDriver Engine for Sega Saturn GPL Source Code - Lobotomy-Software/SlaveDriver-Engine
The fork is called Aguzzino (Italian for "slave driver", thanks SlyGamer for the idea).
WHY SLAVEDRIVER
PowerSlave draws the whole world with the VDP1, as quads. The two CPUs only work out what you can see and send the quads. So the cost grows with the rooms and walls in view, not with the pixels. In my first measures, one quad cost 39 µs in SlaveDriver, against 64 to 100 µs in Mimas.
WHAT I DID
First the toolchain: the engine was built with Psy-Q in 1996, so I moved it to GCC 14 and SBL 6.01 (thanks to Fafling for the first test on hardware). Then I did a rough conversion of E1M1 and it worked, smoothly. Once it was stable, I added the UI, doors, enemies and basic music, then the whole shareware episode.
Doom's code doesn't run as is. The game rules are rewritten on top of the engine (its collisions, shots, sounds and saves), and they read Doom's own tables for the monster states and timings. The maps go through a converter I wrote. It turns each Doom map into PowerSlave's level format (.LEV), cuts the rooms into convex pieces, works out the drawing order with a BSP tree like Doom does, and cuts the textures into tiles the VDP1 can draw.
The converter now also takes Doom II, Final Doom (TNT and Plutonia), Ultimate Doom, community maps, and the PlayStation Doom maps. The biggest maps need a RAM cart or are cut into sections. There are still some work to be done: some doors, keys, elevetors... that do not behave the way they should and lock the player out, but most works, and it's getting better. It takes me a lot of time, as I have to play, find an issue, understand it, fix it in the converter without breaking anything.
WHAT I CHANGED IN THE ENGINE (so far), AND WHY
- Memory. Doom maps are much bigger than PowerSlave levels. So textures and sprites are in 16 colours with their own palette, wall textures are stored compressed, the texture store moved into free VDP2 memory (129 KB more), and the engine can use a 1 MB or 4 MB RAM cart for the biggest maps.
- Floors. The biggest floor in view is drawn by the VDP2 as a rotating plane, and the sky too. That takes work off the VDP1, which draws everything else.
- Walls close to the camera. The textures warped when you got close to a wall. My first fix cut the walls into more pieces, and it doubled the frame time on the Saturn, so I reverted it. The real fix was in how the engine clips a texture near the eye.
- Lights. Fireballs, shots, teleport fog and Doom's blinking lamps light the walls and floors around them, in colour.
- Multiplayer. Split screen for 2 to 4 players, bots, a horde mode, and online play through the NetLink modem.
- Extras. Gore (bodies burst into chunks, blood on walls and floors) and rain.
- Speed. Most of the work is measuring on a real Saturn and cutting what costs. In my measures, a view in PowerSlave holds 15 to 81 sectors, a view in a converted Doom map 106 to 124.
HOW FAST IS IT?
The frame rate is capped at 30 fps. On a real Saturn, the shareware maps run at about 20 to 25 fps, with dips in big rooms and fights. E4M2 sits around 20 fps, with dips under 10 at both ends of the big room. Split screen with 3 players is around 10 to 12 fps, but that's expected.
A question you might ask yourself is how it compares to the official Saturn Doom from 1997. In September I captured both on my NTSC Saturn, E1M1 to E1M3 in ultra-violence: about 12 new frames a second for retail, 21 to 23 for mine.
THE LAST UPDATE VIDEO
It shows the demo: online games with bots, co-op, and the horde mode. The horde is endless waves made from the map's own monsters: pack leaders that glow, stone grey tanks with 250 % health, fast waves, and only one life. My best run on the console was 16 waves, almost 22 minutes, before an imp got me. Post your score!
THE DEMO
You can play it now: the nine maps of the shareware episode, with music and sounds, alone, with bots, in split screen or online.
Release Aguzzino shareware demo (SW18) · N0rt0N85/aguzzino-demo
The nine maps of the Doom shareware episode on the Sega Saturn: alone, with bots, or with other players over the internet through an emulated NetLink modem. File What it is AguzzinoNetLink-M...
- AguzShareware18.zip: the disc alone, for a real Saturn or any emulator. No RAM cart needed.
- The Mednafen packages for Windows and macOS (Apple Silicon only): Mednafen 1.32.1 with an emulated NetLink modem, ready to play online. You need your own Saturn BIOS.
Online goes through my relay in France. A game starts when 4 players are in, or 30 seconds after the last one joined, and a bot takes a free place. Everyone needs the same disc: the calling screen says DISC SW18. So far, online has only been played on emulators.
The demo has been downloaded more than 100 times already, and played 14 times online.
If that was you, many thanks!
NOTES
- Saroo has known bugs with this port (like disappearing textures), that I still have to look into.
- Analog is too sensitive in this version. I'll reduce it for next, and add a sensitivity parameter in the option
- First playtester informed me that turning felt "jerky". I think I found the issue, it should be fixed in the next version.
- A Saturn mouse can be used if plugged in port2
- I plan to release the WAD converter later on, to let everyone convert their favorite WADs into Saturn Disks.
- Multiplayer can be played with bots (local and online).
- Online has a latency, it's experimental.
If something goes wrong, open an issue on the repo, or let me know here or on discord.
Have fun!