Skip to content

RA3 Native v0.3.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 08:51
8da2455

Android 10+, arm64. You need your own copy of Red Alert 3 — see the installation guide.

  • ra3-native-v0.3.0.apk — RA3 Native, for the retail / EA app game (1.12): 60869974 bytes, SHA-256 50e739785ce9a834887bc21d10631f056eee7e600f7d717b10e66caca82cc9fe
  • ra3-native-steam-v0.3.0.apk — RA3 Native Steam, for the Steam release (1.13): 60674313 bytes, SHA-256 0e0c3e18c0d5776419ff25784dd8c174e87c817d2a5453f154c1f96380af2abf

The two apps install side by side. If the installer says a file is invalid, the download was incomplete: download it again and compare.

Performance

  • The GPU does about a quarter less work per frame in battles (measured at 1080p, Ultra, Snapdragon 8 Gen 2: 23 → about 17 ms of GPU time a frame), so the phone runs cooler at the same 30 fps:
    • the bloom's bright-pass, a quarter of the whole frame on Adreno, now reads a half-size copy of the scene (looks the same);
    • depth and stencil buffers that are not needed after the frame are no longer written out to memory.
  • Game code calls are cheaper: the recompiler now works out which processor registers each game function really reads and changes, and a call hands over only those (about 60% fewer register copies per call).
  • Lighter render thread: only the graphics state that actually changed is sent to the driver, and merged draws no longer make the next draw set up every vertex attribute again (about a fifth less driver time per draw).

Fixes

  • Long battles: the game asked for render-target surfaces and vertex declarations every frame, and each request made a new object that was never freed - over a million in a 25-minute battle, with memory growing and object lookups getting slower late in the game. Each surface and declaration now exists once.

Controls and interface

  • Number pad buttons on the keyboard page (N0-N9, N+, N-): the game's camera keys.
  • Camera rotation speed option in the launcher: how fast a two-finger drag turns the camera.
  • Enlarged HUD: tooltips of the right column, the buttons under the minimap and the command bar grow with the HUD, including their requirement lines and icons; the right column grows back to full size after a build menu closes.

For testers

  • /sdcard/ra3_prof now also logs GPU time per render pass and, every 30 s, a list of one frame's passes.
All changes since v0.2.6
  • Release notes for v0.3.0
  • Lighter render thread: fewer GL calls per draw
  • Faster bloom on phones: the bright-pass reads a half-size copy of the scene
  • Shaders: loops with a constant count get a literal bound (GPU can unroll them)
  • Frame trace: shader sources of every render-target pass, not only the first 24
  • Profile: pass list counts every draw and names each target; ra3_rt11 removed
  • Profile: list of one frame's render passes; experiment ra3_rt11
  • Less GPU memory traffic per frame; GPU time per render pass in the profile
  • Fix a crash with the faster calls: "push ecx" is an argument, not a save
  • Long battles: stop making a new D3D object on every render-target request
  • Faster game code: calls hand over only the registers they use
  • Profiler works in RA3 Native Steam too; bigger Direct3D object cache
  • Enlarged HUD: the right column grows back to full size after a build menu closes
  • Enlarged HUD: the requirement lines and icons of a tooltip move with it
  • Enlarged HUD: tooltips of the right column get the full HUD size, not the column's fitted one
  • Enlarged HUD: tooltips of the buttons under the minimap and long command bar tooltips grow too
  • Number pad buttons (the game's camera keys) and a camera rotation speed option