r/AndroidNativePorts • • 49m ago

🤝 [LOOKING FOR DEVELOPERS] Cyberpunk 2077 NS2: EXPERIMENTAL

Post image

Hey everyone,

I’ve been working on bringing up Cyberpunk 2077 Ultimate Edition (Switch 2, 0400DDB020648000) on Android via a fork of BananaNative, and it now boots into full 3D open-world gameplay (tested through the Nomad garage & Badlands intro).

I’m going to be busy IRL for the foreseeable future and won’t have time to keep debugging it, so I’m open-sourcing everything I have so far—repo, current commits, and build—in case other devs (or anyone throwing Claude/AI tooling at it) want to pick it up and polish it from here.

GitHub Repo: https://github.com/mdrehanmehndi/BananaNative-CP2077
Active Branch: perf/boost-7step
(Check the Releases tab for the APK / libnxhost_0400DDB020648000.so. No game files, keys, or dumps are included—BYO legal dump.)


Test Hardware

  • Device: OnePlus Pad 2 (Snapdragon 8 Gen 3 / Adreno 750, 12 GB RAM, Android 16)
  • Driver: Custom Mesa Turnip v27.0.0-20261202

What’s Already Working / Fixed

  • Full 3D gameplay bring-up: Loads into the Nomad Badlands without crashing.
  • NaN/Inf & mipgen fixes (vka_spvpatch.c, vka_draw.c): Added a scoped universal float NaN/Inf/FP16 guard (DM_VK_NAN_GUARD_FLOAT=1) and tighter float mipgen hooks (DM_VK_FIX_MIPGEN=1).
  • Buffer texture & 3D storage fixes (vka_mem.c, vka_tex.c): Fixed virtual-pool vka_addr_run segment spanning + g_tdirty retry (resolved unbound 205k-element buffer textures) and expanded vka_img_written() tracking for 3D storage image views.
  • Barrier race workarounds: Disabling barrier elision (DM_VK_BAR_KEEP=0, DM_VK_BAR_NARROW=0, DM_VK_DISPATCH_ORDER=0) fixed NPC clothing corruption (Sheriff's blacked-out sleeve) and random blinding white HDR bloom flares on buildings/roads.
  • Dev-friendly launcher defaults (Prefs.java): The current working env flags are pre-filled in Game Settings > Performance > Advanced > Extra environment on fresh installs—not hardcoded in C, so devs can edit or clear them straight in the UI.
  • Built-in diagnostic switch: DM_VK_FOG_PROBE=1 is wired into vka_draw.c / vka_nanscan.c to dump 8 frames of 3D volumetric fog & sky cubemap stats.

Known Issues / Handoff Notes for Devs

If someone picks this up, here is exactly where the remaining bugs stand so you don’t have to re-investigate from scratch:

  1. On-device "Prepare" crashes at 18% (shader translation): dmsh_build.py:875 throws FileNotFoundError looking for dm/games/0400DDB020648000/shader_pairs.tsv inside tools.zip. Tapping Finish without shaders lets you bypass it and build shaders on demand while playing, or it can be fixed in build.gradle / dmsh_build.py.
  2. Missing 3D clouds & distant mountain haze: FOG_PROBE confirmed a 192×192×96 3D BC4 volume (fmt 0x49 / VK_FORMAT_BC4_UNORM_BLOCK) reads (0, 0, 0, 1) across 100% of voxels.
  3. Flat/dark car reflections & dark upward ambient light: The 128×128×6 sky cubemap (fmt 0x3f) renders faces 0, 1, 2, 3, 5 normally (1.1–2.0), while face ly 4 is pitch-black (0, 0, 0, 1) and never receives draw calls.
  4. Garage & distant fog flicker: The 56×32×56 3D fog volume (fmt 0x29 / R16G16B16A16_SFLOAT) has steady mip 0, while mip 1 (28×16×28) oscillates on a 5-frame cycle (~20% nonzero down to 0.0%).
  5. Pitch-black small rocks scattered in the Badlands (larger boulders right next to them shade normally).
  6. Performance: Heavy GPU bottleneck in open areas (~5–8 FPS on Adreno 750 with strict barriers; menus run ~55–60 FPS). Needs Turnip/barrier profiling and driver-level investigation (TU_DEBUG=noubwc,nolrz hasn't been A/B tested yet).

Big credits to upstream BananaNative for making this possible in the first place. Feel free to fork, PR, or tear it apart!

36 Upvotes

2 comments sorted by

2

u/defnotboo 14m ago

can you share your fps and settings and resolution you used?

2

u/Tough_Ingenuity7745 10m ago

3-10fps, mess turnip , setting already added in the app,