JohnnyonFlame / sm64-od-port

A (beta) port of SM64-Port for OpenDingux devices.
21 stars 16 forks source link

Upstream! #2

Open computermouth opened 3 years ago

computermouth commented 3 years ago

Hey,

I'd actually been working on this same port for a couple weeks. I was at a point where the game was playable after fiddling with the audio, and some of the assembly for the sound. Then I discovered your videos/reddit posts!

sm64ex here: https://github.com/sm64pc/sm64ex

looks pretty friendly in terms of supporting non-x86 ports. A lot of the OD scene seems pretty content with creating dead forks, it'd be cool if the portability fixes were pushed back upstream.

JohnnyonFlame commented 3 years ago

I've asked fgsfds if he's interested in inheriting these optimizations, since that's the bulk of my work here.

JohnnyonFlame commented 3 years ago

Well, it seems he's not interested, since texture atlases would be counter productive for the people creating these 1024x1024 textures mods.

I'd be interested to see what you have for audio, since that does eat ~4ms per frame. Thank you for your time.

computermouth commented 3 years ago

Ah gotcha, well that's unfortunate. Maybe further upstream? One of those perhaps. https://github.com/sm64-port/sm64-port https://github.com/n64decomp/sm64

I didn't actually get the audio working, just replaced the audio_sdl_play with a return NULL;.

I've never tried playing audio from memory with SDL without using the SDL_mixer stuff. So I might give that a go and report back. But if you're already using alsa, I'd imagine that'd be lighter than whatever SDL_mixer does. Who's to say though, I've seen alsa do some weird things.

I'll post a patch if I get it working though. Sounds like you're better equipped for profiling it