r/AndroidNativePorts • • 2d ago

🟢 [NATIVE PORT] [WIP] DOOM Eternal native Android port of the Switch version: 38–58 FPS on Snap 8 Gen 3, a whole new Vulkan renderer to get there (NVN → native Vulkan)

Enable HLS to view with audio, or disable this notification

After a long month and a half and a lot of suffering, I'm finally done with DOOM Eternal, a native Android port of the Nintendo Switch version (claude did the heavy lifting, as usual, I did the debugging, testing and complaining). Let me be honest right away: this is NOT a good port. It's a moderately crippled one, at a "playable" level.

Release and APK: https://github.com/Desm0nt/doom-eternal-port/releases/tag/v0.1.0

Install guide (step by step, with FAQ): https://github.com/Desm0nt/doom-eternal-port/blob/main/docs/INSTALL.md

Already prepared game files: https://gofile.io/d/xUtw97Po

Read this first, please:

  • Weak devices (anything below Snapdragon 8 Gen 2) are most likely out. Similar and stronger ones - it depends on your luck.
  • Realistically only Adreno and Maleoon (Huawei). Sorry, Mali and PowerVR owners - getting it even barely playable took a lot of optimisation shamanism that leans on the GPU and driver forgiving everything, and "omnivorous" ones like Adreno do, while yours are much pickier. So on Mali / PowerVR expect artifacts, crashes or no start at all. Of course, I tried to add fixes for the known problem areas, but the optimizations most likely created many new ones.
  • It may crash or hang in unexpected places. I couldn't check everything - you are my only testers.

Not an emulator or JIT. The game's own AArch64 code runs on the phone, a small host gives it the Switch system services, and the graphics go to our own Vulkan renderer. Shaders are translated to SPIR-V on your PC once, by setup.

Why it's so heavy

The game turned out to be HELLISHLY hungry. Some numbers (the FPS depends on them directly):

  • an average DOOM 2016 scene - 2 400–3 000 draw calls;
  • an average DOOM Eternal scene - 9 000–13 000 draw calls, even with a limited draw distance.

So by draw calls alone the game is about 4 times heavier than DOOM 2016. On top of that: new effects, destructible demons, huge locations, heavier shaders... Honestly, I have no idea how this ran on the Switch at all, and at what FPS.

To get away from 5–15 FPS, I had to rewrite the whole renderer to native Vulkan (yes, like DOS2, only worse): merge every render pass that could be merged, cull all the geometry that can be culled (and some that shouldn't be, but had to), cheapen the shadows, mess with the buffers, cache everything that can be cached and read it back a frame later, simplify the vertex work for the shading passes, torture the effects, and so on. Most of it is probably damn broken somewhere, and I will be very, very surprised if anything other than Adreno and Maleoon can chew it.

What to expect

On my Snapdragon 8 Gen 3 (Adreno 750) I squeezed out 38–58 FPS, and 26–45 FPS on 8 Gen 2. Don't expect a steady framerate, unfortunately - it jumps around a lot. And at what price:

  1. Lowering the resolution will barely help - the bottleneck is the amount of geometry, not the pixels.
  2. Handheld mode gives +1 FPS at best - its optimisations add almost nothing on top of mine.
  3. Small things (pebbles, decals, debris) may pop in and out right in front of you. That's normal - the price of the home-made fast culling of "invisible" objects.
  4. Sometimes a little square ripple shows on some surfaces. It can't be fixed - it's an unavoidable side effect of a combination of the optimisations.

I'll try to fix the bugs you report, but more performance without worse detail and picture quality won't be possible - I've already squeezed out everything that could be squeezed. I honestly did what I could, even though there was a huge urge to drop Eternal and do something more manageable and sane.

Installation, briefly

  1. Dump DOOM Eternal (base game + update v983040) and your prod.keys from your own Switch, put them into put-game-files-here.
  2. Run setup.bat (or bash setup.sh), answer Y and wait. About 20-40 minutes, ~70 GB free on the PC while it runs.
  3. Copy the DOOM Eternal Mobile folder to the phone's internal storage → Download (~37 GB).
  4. Install the APK from https://github.com/Desm0nt/doom-eternal-port/releases/latest (DOOM-Eternal-Mobile-v0.1.0-arm64.apk, Android 12+), start it, allow All files access.

Known limitations

Only DOOM Eternal, update v983040. Campaign only, offline (no Battlemode / online). A phone with Android 12+ (64-bit). No game files or keys are included - dump the game and the keys from a Switch you own.

Built on my DOOM 2016, Diablo III, Torchlight II, Pillars of Eternity and Divinity: Original Sin 2 ports (the same native host, front end, drivers and setup; the Vulkan renderer grew out of the DOS2 one).

If something goes wrong - open an issue and attach the logs (see the install guide), plus phone model, GPU, Android version and the place where it happens.

Source code and releases: https://github.com/Desm0nt/doom-eternal-port

123 Upvotes

29 comments sorted by

3

u/Sharp-Cockroach8098 2d ago

No disrespect to you sir I am waiting for peanuts native to support doom 3, doom 2016, doom eternal but good luck with your port

2

u/Desm0nt 2d ago

2016 will most likely run on peanuts, but I have serious doubts about Eternal. The problem with it isn't the porting itself, but the fact that the game (even natively) is just monstrously heavy in terms of the number of models and renderings.

Huge levels + increased detail with a lot of small debris on them + destructible/damageable enemy models (which is also a lot of separate small high-polygon geometry). The phone suffers not only because of a weak GPU or a narrow memory bus – even the CPU itself can't handle the processing of the game's logic.

In other words, no matter how perfectly you convert the game, it won't run in its current state. In the port, I literally intercept the calls from IdTech 7 (the game engine) and redirect them to my library, replacing some of the game developers' original calculations and renderings with my own simplified versions, or discarding them altogether and replacing them with placeholders, in order to somehow reduce the load.

1

u/Sharp-Cockroach8098 2d ago

We need wait and hope for the best

1

u/armorking44 2d ago

i customized a peanuts build to accept Eternal and it was runnng at 8 fps with graphical artifacts.

1

u/Sharp-Birthday-2187 1h ago

https://www.reddit.com/r/AndroidNativePorts/s/K8GokwM9fN

Tested his new port you can with for peanut Native to support it.

1

u/Shot_Psychology_2728 2d ago edited 2d ago

Thank you very much for your service. Panic Button must be wizards to let a game like this play on a standard Switch.

I am waiting on my Odin 3 and I will give it a test. Hopefully it can take care better some of the slowdowns. Even the game being almost 60GB less than what I would use to play it via Gamehub is an enormous win.

I know it must be annoying to only support Adreno 740 and up, but newer chipsets will catch up and a good work never goes to waste

PS: Does the game support English or just Russian?

3

u/Desm0nt 2d ago

Multilang, I just forgot to add it into menu. It's in 0.1.1 now https://github.com/Desm0nt/doom-eternal-port/releases/tag/v0.1.1

1

u/Crafty_Bear221 2d ago

Make it playable on 8 gen 1 please

2

u/Desm0nt 2d ago

You can try it. But I physically can't get any more fps for this game. To get more I should literaly drop half of the objects from the level.

1

u/Crafty_Bear221 2d ago

Can u do a lite version too? Please do that.

1

u/mikethemlgdeck 2d ago

Are there any plans to make it so you can compile it on android without a PC?

1

u/Desm0nt 2d ago

In plans for all my ports, but a little bit later

1

u/Apart-Device-9717 1d ago

How much did it cost in total, in monetary terms, to create this port?

3

u/Desm0nt 1d ago

It's hard to say.

I have a $200 Claude plan, a $20 Codex plan, and a $20 Gemini + DeepSeek plan. But they are actively used at my job, and I do ports in my free time, spending only 40-60% of the limits on them.

I spent a month and a half on this port, but besides that, I was fixing bugs in my other ports + working on Divinity Original Sin 2 (so it's hard to estimate the specific cost for Eternal). Moreover, its implementation wasn't entirely from scratch but rather based on a huge amount of my previous work (mainly from Doom 2016 and DOS2, after which this became possible).

But it really took up a lot of time. Essentially, out of a month and a half, I only dedicated about 25-30 evenings to this port, plus some additional time during my working hours. Moreover, most of the thinking and research fell on me, because Claude has no idea how games are get optimized. However, it's good at gathering metrics when you know where to look (and point AI at it), and it's also good at running dozens and hundreds of test runs of game on the phone in autonomous mode to collect statistics and catch deviations in the logs.

1

u/Apart-Device-9717 22h ago

Thanks Very good

3

u/Ok-Anything6909 2d ago

To be honest, it's actually Incredible how this game ran on a handheld that is aging now 

It's literally way heavier then Doom 

1

u/Aluscar 2d ago

What's the best driver for 8gen3 can I get a link of the driver?

1

u/PracticalBuy4074 2d ago

Incredible job 👍

1

u/ClumsyHumane-V2 2d ago

How are the temps? I don't mind completing the game on mobile once again lol, I have a 8 elite (gen 4) so I'm assuming it'll be slightly better.

1

u/Sharp-Birthday-2187 2d ago

I'm currently playing your DOOM (2016) port, and it's running perfectly on my Snapdragon 8 Elite Gen 5 with 12GB of RAM. I'll definitely play your DOOM Eternal port too, but for now, I'll wait for future updates and builds.

1

u/Any-Two-1553 2d ago

Will it run on my poco X8 pro max, it has a immortalis gpu

1

u/Sharp-Birthday-2187 2d ago

Definitely run but you have to use a good Mali driver

2

u/Any-Two-1553 1d ago

Do you know where can I get those??

1

u/Sharp-Birthday-2187 1d ago

Directly from Port

1

u/321Shellshock123 2d ago

Porting doom eternal is crazy

But beautiful nonetheless

1

u/armorking44 2d ago

I was working on this as well but holy i squeezed 20-30 fps with hard cutoff in render distance. Keep up the good work! Tested on snapdragon 8 elite gen 5 getting consistant 50-60 fps. Absolutely outstanding brother!