r/NativePortsOniOS • • 2d ago

Miles Morales port progress!

Enable HLS to view with audio, or disable this notification

We are getting closer to having the exaggerated swagger of a black teen running at full capacity!

There's still a lot of work to be done, a lot of optimizations, and still have some missing textures. But I'm trying to pull every lever possible to get this game running at a stable frame rate with a decent resolution.

Also looking to implement frame generation by replacing the FSR frame generation with the native MetalFX frame generation and all of the Metal pipelines for upscaling and better performance.

There's no GitHub repository just yet.

I know that people want this game, and I promise I'm working on it, but just give me some time. Hopefully, this video can serve as just an update to let you guys know that it's coming and that real progress is being made.

Let me know your thoughts and if you have any questions

156 Upvotes

35 comments sorted by

8

u/HeroGamer6 2d ago

This is amazing, congrats! I'm working on a native iPad port of a current-gen console title (iPad Pro M5, 12 GB, Metal, game code recompiled ahead of time to ARM64), and I'm stuck on a few things I'd really value your opinion on, since you've clearly been through them:

  1. Memory: what's your strategy for staying under the iPadOS memory limit? Even with the increased-memory entitlement, we hit the wall at about 11–12 GB, mostly GPU allocations that spike when the GPU falls behind.
  2. GPU performance: the open world runs at 1–3 fps. What gave you the biggest frame-rate wins on the M-series GPU? Shader-level changes, lower internal resolution plus upscaling, cutting effects?
  3. Shader pipelines: do you build pipelines ahead of time or on the device? Entering new areas gives us long black stalls while Metal compiles.
  4. If you were starting over, what would you do differently, or what do you wish you'd known earlier?

Any advice at all would help a lot, and I'm happy to share anything we've learned in return. Would you be open to a quick DM chat?

1

u/Time_Opportunity_225 2d ago

Thanks! Quick answers in order:

  1. Memory. Treat Metal residency as the real budget: anything resident gets fully committed, even if half of it is never touched. log every GPU allocation by type and size, then shrink what's actually oversized. We cap what the game thinks it has (a smaller reported video-memory budget and texture-streaming budget), bound render targets the game sizes for PC (a huge shadow atlas, for example), and limit frames in flight so a GPU that falls behind can't pile up more transient memory. Also leave headroom: iOS compresses memory under pressure, and if you run right at the limit it kills the system shader compiler, so compiles start failing.
  2. GPU performance. Profile before changing anything (Metal System Trace). Our biggest early wins weren't shader changes but translation-layer overhead: untracked heaps plus a residency set instead of per-resource hazard tracking, removing redundant barriers and encoder breaks, and right-sizing big passes. Then lower internal resolution with MetalFX temporal upscaling. We route the game's own FSR hooks into MetalFX, so it gets the real depth and motion vectors. Cutting effects came last and helped least. 1–3 fps usually means something pathological (CPU/GPU waits, sync, a pass running at a giant resolution), not just too many pixels.
  3. Shader pipelines. Ahead of time. The device records every pipeline it creates during play (state plus shader source). We bake those on the Mac into a binary archive for the target GPU and ship it in the app, and every play session feeds the next bake. Anything still missing has a fallback, so a slow or failed compile never freezes the frame.
  4. Starting over. Build the fast test loop first: automated launch, input, screenshots and log pulls, so a test takes minutes, not an evening. Log timings from day one, keep symbols for every build, and measure before optimizing. A lot of the "performance problems" turned out to be waits and frame pacing, not raw GPU load.

1

u/rarelyHere1888 2d ago

Given the work you are doing here do think it may be feasible to get other games like FF7 remake working as a native port?

1

u/Time_Opportunity_225 2d ago

I can't really say yes and I can't say no. Every game is different. It really comes down to digging through the code and seeing what's possible. Some games are harder than others depending on:

  • The engine the game is running on
  • The various APIs that are required to actually draw an image on the screen
  • The DRM protection
  • Other optimization factors

I'd say most games are possible, but some are more trouble than they're worth and others would take more time than most people have.

1

u/Arshjie 2d ago

how many projects are you working on simultaneously or at once

1

u/Time_Opportunity_225 2d ago

Yes. 😅

1

u/Arshjie 2d ago

But how many projects bro?

1

u/Time_Opportunity_225 2d ago

17

1

u/ryan6810 2d ago

Wowwww ! You are working on 17 projects ?! Amazing bro !

1

u/No-Listen-849 2d ago

How yall managing to run these insane games on mobile lol? I checked the guide and still clueless…I can’t even run the Mario games let alone the new modern era games.

2

u/Time_Opportunity_225 2d ago

The A20 Pro is no slouch of a processor, but even still, I still have a lot of work to do to optimize this game. As far as other games are concerned, NX Native has been a huge help for Nintendo games.

1

u/No-Listen-849 2d ago

Oh was just asking because I’m a total newbie lol and just got to know u need a iPhone 15 pro or newer which I don’t have. Anyways good luck , any tips for native ports on iPhone 14 btw?

1

u/Alarming-Example-744 2d ago

You goat !!!!

2

u/Time_Opportunity_225 2d ago

I'm just a kid. Working my way up 🫡

1

u/Alarming-Example-744 2d ago

Good job man I wish I was this savvy kids like you give hope for future generations man

1

u/Time_Opportunity_225 2d ago

LOL, not trying to catfish; I’m 30.
I just mean I’m not the GOAT. I’m just a “kid” which is a baby goat, not a full goat yet. 😅

1

u/hossein002014 2d ago

Are you using getmoreram?

2

u/Time_Opportunity_225 2d ago

I use Xcode to enable the max RAM entitlement

1

u/hossein002014 2d ago

Does it use more than 6gb ram?

1

u/Time_Opportunity_225 2d ago

Much more. 🫪 Squeezing it as much as possible just to get it under 8 GB of RAM right now.

On the iPad Mini, trying to run it at reasonable optimized settings will still push it sometimes to 9 or 10 GB. I have a few more levers that have gotten it down to around 8.1 GB, but getting it to 6Gb might not be possible because that's the entire budget of the game, GPU and CPU.

1

u/Fun_Huckleberry_7781 2d ago

Question, will this work on iPhone Duo? And phones with the A20 chip? Or will this be an iPad os only port?

1

u/Time_Opportunity_225 2d ago

It will work on phone. I'm building the main version on 18 pro max

1

u/Drayton2K 1d ago

What controller is that?

1

u/Time_Opportunity_225 1d ago

I can't say. Ppl always think it's an ad 🤷🏽😅

1

u/StoneVart 2d ago

Hey bro. Can u provide git repo. I’ll try it in my iPhone 17 PM… can also contribute to ur repo in making it better

4

u/Time_Opportunity_225 2d ago

There's no GitHub yet. Let me cook for a bit longer.

1

u/b_litzkreig 2d ago

Don’t know why people are downvoting you but the work you’re doing is amazing, I think it’s crazy for you to be able to get an AAA game working on an iOS.

6

u/Time_Opportunity_225 2d ago

That just lets me know that the people want the game, and it inspires me to keep working. 🤷🏽😅

Upvote, downvote, we still grinding. 🫡

4

u/b_litzkreig 2d ago

People seem to think they are entitled to access to your efforts or even worse, the .ipa file upfront. What they don’t see is the effort to code/vibe code with AI. My own experiences with purely just adjusting the Nxnative (thanks to the amazing folks behind this effort) workflow for recomp of Switch games is that even with AI helping, it doesn’t necessarily mean that it’s easy. So your effort to do something from ground up is admirable.

1

u/Time_Opportunity_225 2d ago

It's a challenging process, but for me that's half the fun. I can already play this game on devices ten times as powerful, but that's played out. I want to see what's possible with a native port. It may never get it to where I want it to be, but I see progress and that lets me know I got to keep going.

I don't mind ppl asking for it; these are uncharted waters.

The effort will be worth it

1

u/StoneVart 2d ago

Bruh when did I say I wanna have his ipa.. I asked to contribute 💀.. tbh I myself turned dragon ball sparking zero android port to iOS port natively… and it’s running really well.. so I thought I could contribute here as well if needed…

2

u/Time_Opportunity_225 2d ago

No hard feelings either way, I genuinely don't have a repo set up yet and I want to get it in a slightly better state before sharing so I'm not just handing out garbage. But I get the desire to help and also the frustration from people who want to play it.

The time is not being wasted.

3

u/StoneVart 2d ago

Goodluck mate, in case u need any help… lemme know, I’m down to work on it too… since u already did such a good job on this, I thought me working on it would be a waste, so I’ll work on some other game… maybe dragon ball xenoverse 2 or some other.

1

u/dstormz02 1d ago

Wow! Keep it up.