Skip navigation
It's finally time for the massive update I know EVERYONE has been eagerly waiting for...
0:00 / 6:32

It's finally time for the massive update I know EVERYONE has been eagerly waiting for...

Falco Girgis

@falco_girgis14K followers

Visit on X
2,219 likesDownloadOriginal post

89,319 views

It's finally time for the massive update I know EVERYONE has been eagerly waiting for... Presenting to you over 6 straight minutes of spliced footage directly captured from my actual physical Sega Dreamcast... RUNNING THE LATEST BUILD OF OUR SONIC MANIA PORT!!! I can't even begin to describe to you how polished and fantastic it's starting to feel... as though it belonged on the Dreamcast all-along... Thanks to the hard work of jnmartin, sonicfreak94, and a few others, not only is the Dreamcast port nearing completion, but... wait for it... THE 3D STAGES THAT STRUGGLED ON EVERY UNOFFICIAL PORT ARE NOW ALL RUNNING FULLSPEED!!!! Trust me when I say that this took an absolutely ENORMOUS amount of effort from jnmartin and the crew to pull off, considering the low-end for this game was the original Nintendo Switch, and ports running on consoles with twice our processing power struggled to run these levels fullspeed. The first and most obvious thing is that the 3D software renderer was ditched and all rendering was done natively with our PowerVR GPU... which actually wasn't as simple as it sounds. The tilemaps for these levels have had to be tessellated into a bajillion PVR quads and transformed and rendered as individual polygons to look correct and run faster than a slideshow. Mr anonymous Ocarina of Time chad developer came up with a pretty slick LoD scheme for drawing tiles closest to the player at 1x1 pixel sizes with sizes increasing with distance up to 2x2 and 4x4 pixels, allowing them to reduce the overall number of tile vertices that have to be transformed by the SH4 CPU and submitted to the PVR GPU, by strategically keeping the majority of the polygon detail closest to the camera, with detail decreasing as the tiles get further away. Next, the 3D geometry was preprocessed and converted from being triangle-based to being triangle-strip based, drastically reducing the number of vertices per model that our 200Mhz SH4 CPU had to transform (with plain integer arithmetic and no FPU vectorization, since this is all slow-ass fixed-point integer math)! Finally, it was discovered that the lighting was a disproportionately significant contributor to the TnL load on the SH4 for processing vertices. Jnmartin came to the realization that 99% of the time only the Y axis direction is considered for lighting equation intensity with just a white color. So this simplified lighting model got baked into the renderer, which gave another round of gainz. So in the end, after all of this work came together, a draw distance of 75% the distance of the retail Sonic Mania versions was achieved for the decorations, plus the character models have their full geometry count and have not been simplified on a freaking Sega Dreamcast with a 200Mhz SH4 CPU and only 16MB of RAM! 🔥

37 Comments

Comments from the original post on X (Twitter)

  • Falco Girgis's profile picture

    @falco_girgis

    Oops. My description of the LoD scheme was not quite accurate, actually. Here's how jnmartin just said it actually works. Gotta be accurate! My bad!

    90 likes

  • Falco Girgis's profile picture

    @falco_girgis

    Also, in the end, the FTRV vector/SIMD instruction was used to accelerate the final vertex transforms, using floating-point math, even if the matrices themselves and transforms applied as multiplications onto them remained using fixed-point integer math. MY BAD. Was out of the loop with a new job for a couple weeks. lol.

    62 likes

  • David24's profile picture

    @Davis24X

    It would be very funny if the Flycast emulator for Vita ran theese special stages better than the actual Vita port It's probably incompatible because it wouldn't make sense any kind of RE support in the emu when this is the first game to use it on Dreamcast, but it would be funny

    17 likes

  • MightyWolfTV's profile picture

    @SchellerTrevyn

    Playing it on a Sega console would just feel so right. Can we also see Sonic Heroes get ported someday?

    16 likes

  • DADDY_HYPEMAN's profile picture

    @DADDY_HYPEMAN

    THEY USED TO SAY "TO BE THIS GOOD TAKES AGES" BUT NOW WE GOT DREAMCAST SAGES THIS IS AMAZING!

    12 likes

  • Nimbus's profile picture

    @Mobeelsuito

    WAIT WAIT WAIT the 3D stages work on the 16mb of RAM the DC has and runs smoother than the Vita fan port? God I hope they take some of this and apply it to the Vita port. Love having Mania on the go

    11 likes

  • ateam's profile picture

    @DerekPascarella

    Dreamcast homebrew devs do what SEG-don't.

    10 likes

  • Bluwolfblitz's profile picture

    @bluwolfblitz

    Incredible work fellas. Can we expect a release soon..? :)

    10 likes

  • Zophar's profile picture

    @TheRealZophar

    I wants it precious!!

    10 likes

  • Falco Girgis's profile picture

    @falco_girgis

    Omg it’s an honor, @TheRealZophar !

    10 likes

  • unevenprankster's profile picture

    @pranksterware

    Insane work!! It's wild the OG game used softrast, tho it def. was key to achieving the look it has. Getting this much working on DC keeps proving to me how much it can punch above its weight

    8 likes

  • Francesco (computer guy)'s profile picture

    @Brotherhood0MD

    This is surely the coolest way to play Sonic Mania!

    7 likes

  • 🎃SpoopyJupiter⚰️'s profile picture

    @Protocat21

    Been following jnmartin for a while now dude's a fucking legend and magician for figuring out the special stages

    7 likes

  • Severed Legs's profile picture

    @SeveredLegs

    Truly amazing. Maybe I should keep my dreamcast instead of selling it?

    4 likes

  • Robot Turkey (Adam)'s profile picture

    @Robot__Turkey

    I am so excited for this project. You guys are all doing one of the coolest things in retro gaming right now. Keep killing it!!!!!

    4 likes

  • Bluesfire 🌐 Retro Gaming Vtuber's profile picture

    @BluesfireVT

    God I can’t wait to play this on my own DC. This is so incredible!

    3 likes

  • Jebbreh's profile picture

    @Jebbreh

    @hitmanmcc You're insane. The magic you work is beyond legendary.

    3 likes

  • Francisco Kupamon's profile picture

    @Kupiperx

    Runs flawlessly this is so exciting to see!

    3 likes

  • McReffy's profile picture

    @McReffy

    Stunning work!! Hope for a release soon!!

    3 likes

  • 128bot's profile picture

    @128bot_

    Holy shit 3D runs smooth You all did such a great job

    3 likes