Page 1 of 1

Compiling SM64 for Dreamcast?

Posted: Fri Apr 10, 2020 7:50 pm
by Talkashie
As most are aware by now, Super Mario 64 was recently decompiled and the source code is available to everyone. You can find the code (but not the assets to keep it legal!) here:https://github.com/n64decomp/sm64

My question is, would it be possible to compile SM64 for the Dreamcast? I believe the Dreamcast hardware is more than capable of running this game. A video surfaced of the Dreamcast emulating SM64 about 10 years ago at around 5-10 FPS, so I imagine running native code would run at full speed. The vast majority of the code is straight C.

I don't have any experience in porting games to Dreamcast, but if someone more experienced could weigh in on this that would be amazing! I don't picture this being simple at all, but it would surprise me if this was impossible now that the source code is available.

Re: Compiling SM64 for Dreamcast?

Posted: Fri Apr 10, 2020 8:05 pm
by fafadou
It will be so awesome !!!
As Always the most difficult thing is to create the 1st_read.bin.

Re: Compiling SM64 for Dreamcast?

Posted: Sat Apr 11, 2020 12:48 am
by Anthony817
While I have been followi9ng this project closely, and I do think theoretically it will work, more time is needed. I am hopeful 007 will eventually be done sometime in the future. I had the same idea as yourself but wanted to hold off asking until it was more widely thought out. Yes we know the hardware is able to run it easily, but will the developers be able to optimize it? If NuQuake is any indication, I say yes. That is a hardware accelerated port of a PC game from 96. So a console game from 96, ported to PC, then to DC, I say why not?

Re: Compiling SM64 for Dreamcast?

Posted: Sun Apr 12, 2020 5:46 pm
by Wombat
It would be crazy seeing Mario 64 run natively on Dreamcast. Hopefully someone will be up for this task, but surely it will be a mammoth job.

Re: Compiling SM64 for Dreamcast?

Posted: Sun Apr 12, 2020 8:23 pm
by mrneo240
Easier to wait for the PC port

Re: Compiling SM64 for Dreamcast?

Posted: Mon Apr 13, 2020 3:08 pm
by MastaG
The source code for sm64 targets the sdk and runtime libraries for the N64 hardware.
The Dreamcast would be more than capable but a good chunk of core has the be rewritten to target the Dreamcast sdk/hardware.

Re: Compiling SM64 for Dreamcast?

Posted: Mon Apr 13, 2020 4:10 pm
by Ian Micheal
MastaG wrote:The source code for sm64 targets the sdk and runtime libraries for the N64 hardware.
The Dreamcast would be more than capable but a good chunk of core has the be rewritten to target the Dreamcast sdk/hardware.
Be so much work to do this might as well make your own game.

Re: Compiling SM64 for Dreamcast?

Posted: Mon Apr 13, 2020 5:30 pm
by MastaG
Ian Micheal wrote:
MastaG wrote:The source code for sm64 targets the sdk and runtime libraries for the N64 hardware.
The Dreamcast would be more than capable but a good chunk of core has the be rewritten to target the Dreamcast sdk/hardware.
Be so much work to do this might as well make your own game.
Perhaps someone will stand up and make a port for a platform targeting more general methods and API's (OpenGL(ES) for example).
Then another someone could use that for a DC port..

Now both someone's need to have absolutely no life, since SM64 runs on each and every N64 emulator out there.
I remember playing it on UltraHLE with 3dfx glide back when I was a teenager.

Re: Compiling SM64 for Dreamcast?

Posted: Mon Apr 13, 2020 7:51 pm
by Ragfish
N64 hardware is very weird compared to other consoles and PCs, so even if we have the source code it's likely going to take tons of work to get it running properly on a Dreamcast. As mentioned above, it'd probably be easier to port a PC reworking of the game rather than the actual N64 game.

Re: Compiling SM64 for Dreamcast?

Posted: Fri May 15, 2020 7:20 am
by MastaG
https://github.com/sm64pc/sm64pc

There seems to be somebody who did a SDL2/OpenGL port of the game.
@Ian Micheal could you take a look at this?