Skip to content

labelle-android v0.4.0 — renderer setting, Vulkan crash guard

Choose a tag to compare

@apotema apotema released this 30 Sep 15:46
6bcad92
  • Renderer setting: a "renderer" provider setting in providers/android.json: gles / vulkan / auto, default gles (#26). The packager writes it into the APK as the labelle.renderer meta-data. For vulkan/auto it also adds the optional Vulkan 1.1 uses-feature.
  • Launch-time resolution: the renderer is chosen before bgfx starts (#27). Order: intent override (debuggable builds only), then the crash guard, then the setting, then auto (Vulkan when the device reports Vulkan ≥ 1.1). The result is exported as LABELLE_BGFX_RENDERER.
  • Vulkan crash guard (#28). A Vulkan start that never reaches a stable run makes the next launch fall back to GLES. Stable means ≥120 presented frames and ≥10 s. It reads the frame count through labelle-bgfx's labelle_bgfx_frames_presented, which needs a labelle-bgfx release with #183. Markers live in no_backup/, and the guard fails closed.
  • Docs (#29): "Android emulator testing" (docs/emulator-testing.md) and "Choosing a renderer" (docs/renderer.md).
  • Quit: game.quit() now finishes the Activity on Android (#35).

Part of labelle-toolkit/labelle-bgfx#172.