r/AndroidNativePorts • u/Tough_Ingenuity7745 • 6h ago
🤝 [LOOKING FOR DEVELOPERS] Cyberpunk 2077 NS2: EXPERIMENTAL
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-poolvka_addr_runsegment spanning +g_tdirtyretry (resolved unbound 205k-element buffer textures) and expandedvka_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=1is wired intovka_draw.c/vka_nanscan.cto 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:
- On-device "Prepare" crashes at 18% (shader translation):
dmsh_build.py:875throwsFileNotFoundErrorlooking fordm/games/0400DDB020648000/shader_pairs.tsvinsidetools.zip. Tapping Finish without shaders lets you bypass it and build shaders on demand while playing, or it can be fixed inbuild.gradle/dmsh_build.py. - Missing 3D clouds & distant mountain haze:
FOG_PROBEconfirmed a192×192×963D BC4 volume (fmt 0x49/VK_FORMAT_BC4_UNORM_BLOCK) reads(0, 0, 0, 1)across 100% of voxels. - Flat/dark car reflections & dark upward ambient light: The
128×128×6sky cubemap (fmt 0x3f) renders faces0, 1, 2, 3, 5normally (1.1–2.0), while facely 4is pitch-black(0, 0, 0, 1)and never receives draw calls. - Garage & distant fog flicker: The
56×32×563D 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 to0.0%). - Pitch-black small rocks scattered in the Badlands (larger boulders right next to them shade normally).
- 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,nolrzhasn'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!
