r/EmulationOnAndroid • u/chip_dmg_ • 18h ago
Showcase Banana Native on RP Mini (Android 10, 6gb Ram)
[AI-Assisted]
Started using codex weeks ago for a project I am making about optimizing an Android game. I tried to apply same techniques of said project to see if Codex could backport Banana Native (like searching for native Android 13 APIs and modifying them). Things went faster than I expected, app opened and the game booted successfully.
Vulkan 1.1 support needed to be added. I showed my device's supported Vulkan extensions, current stock driver, compiler version and Vulkan loader.
Stock driver worked but lots of rendering issues appeared, then a lot of trial and error with different Turnip drivers happened until the best one was found.
Codex linked Turnip's Vulkan 1.3 to the Android's loader 1.1 and enabled the appropriate interfaces. After this it solved most related to broken compute shaders.
RAM usage was reduced through file-backed memory, GPU allocations on demand, a 512 MiB texture cache and three-slot submission ring. I will play around more with textures bpp to see if it leads to significant changes. Some shader compilation changes were also made.
The are still problems and as someone that works as QA, I will only release this if I am able to guarantee that it plays smoothly. Shader compilation takes longer then it should because of the changes that were mentioned previously. I will play through the game and trace pipelines, take a look at their milliseconds and see which approach is the best. I also still need to trace CPU to see if no weird migration between clusters and cache misses are happening.
I believe making these games run on old hardware such as my RP Mini is fun. If AI is making hardware more expensive each day, might as well use it to make modern games on old, cheap hardware.