Compiling SM64 for Dreamcast?

Place for discussing homebrew games, development, new releases and emulation.

Moderator: VasiliyRS

Talkashie
noob
Posts: 1

Compiling SM64 for Dreamcast?

Post#1 » Fri Apr 10, 2020 7:50 pm

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.

fafadou
Cracked LCD
Posts: 411

Re: Compiling SM64 for Dreamcast?

Post#2 » Fri Apr 10, 2020 8:05 pm

It will be so awesome !!!
As Always the most difficult thing is to create the 1st_read.bin.

User avatar
Anthony817
Shark Patrol
Posts: 3131

Re: Compiling SM64 for Dreamcast?

Post#3 » Sat Apr 11, 2020 12:48 am

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?
Image

User avatar
Wombat
Power Stone
Posts: 591

Re: Compiling SM64 for Dreamcast?

Post#4 » Sun Apr 12, 2020 5:46 pm

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.

mrneo240
Sega RPG
Posts: 604

Re: Compiling SM64 for Dreamcast?

Post#5 » Sun Apr 12, 2020 8:23 pm

Easier to wait for the PC port

MastaG
undertow
Posts: 32

Re: Compiling SM64 for Dreamcast?

Post#6 » Mon Apr 13, 2020 3:08 pm

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.

User avatar
Ian Micheal
Developer
Posts: 2064
Contact:

Re: Compiling SM64 for Dreamcast?

Post#7 » Mon Apr 13, 2020 4:10 pm

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.

MastaG
undertow
Posts: 32

Re: Compiling SM64 for Dreamcast?

Post#8 » Mon Apr 13, 2020 5:30 pm

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.

User avatar
Ragfish
fragger
Posts: 259

Re: Compiling SM64 for Dreamcast?

Post#9 » Mon Apr 13, 2020 7:51 pm

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.

MastaG
undertow
Posts: 32

Re: Compiling SM64 for Dreamcast?

Post#10 » Fri May 15, 2020 7:20 am

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?

  • Similar Topics
    Replies
    Views
    Last post

Return to “New Releases/Homebrew/Emulation”

Who is online

Users browsing this forum: No registered users