Answering your prime questions on Android Sport Growth Equipment

Posted by Wayne Lu, Technical Lead Supervisor, Android DevRel

hand holding a phone with game and chat

We launched the Android Game Development Kit (AGDK) in July, and have collected some prime questions from builders – starting from AGDK libraries and instruments, optimizing reminiscence in Android, and implementing graphics.

AGDK and recreation engines

Firstly, we’ve heard questions from early, rising recreation builders on the best way to use our set of AGDK libraries and instruments. We have now the next suggestions relying in your setup:

  1. For recreation builders utilizing popular game engines resembling Defold, Godot, Unity, or Unreal – you’ll be able to comply with our guides to learn to develop apps on Android. Utilizing these recreation engines enables you to give attention to constructing gameplay as an alternative of all the know-how stack.
  2. If you happen to’re utilizing Unreal Engine and focusing on a number of platforms resembling PC or consoles, Android Game Development Extension (AGDE) could also be an ideal addition to your workflow.
  3. We additionally help builders who wish to customise and write their very own recreation engine – you’ll be able to learn more about this with our C or C++ documentation.

After selecting your recreation engine and workflow, you need to look into our instruments such because the Android Studio Profiler to examine your recreation, Android GPU Inspector to profile graphics and Android Performance Tuner to optimize body charges and loading instances.

Sport Mode API and Interventions

Following this, we’ve acquired questions on creating for Android 12. Whilst you don’t must do something particular in your recreation to run on Android 12, we’ve launched Game Mode API and interventions to assist gamers customise their gaming expertise.

  1. Learn extra concerning the Game Mode API, and learn how to optimize your recreation for one of the best efficiency or longest battery life when the consumer selects the corresponding recreation mode.
  2. Be taught concerning the Game Mode interventions – these are set by authentic gear producers (OEMs), to enhance the efficiency of video games which might be not being up to date by builders. For instance: WindowManager backbuffer resize to scale back a tool’s GPU load.

Reminiscence Entry in Android

Secondly, you’ve requested us how reminiscence entry works in Android recreation growth versus Home windows. In brief, listed here are a few pointers:

  1. Video games have to share reminiscence with the system. Some gadgets have much less accessible reminiscence than others, so testing is required to examine for low reminiscence points on a variety of supported gadgets. Testing needs to be completed on gadgets with typical apps {that a} consumer would have put in (i.e. not a clear gadget).
  2. The quantity of memory a game can allocate depends upon varied components resembling the quantity of bodily reminiscence, the variety of soiled pages, and the quantity of whole zRam (for compressed swapping)
  3. Signs of low reminiscence may be: onTrimMemory() calls, reminiscence thrashing, or termination of the sport by the Low Memory Killer. Use bugreport logs to examine if the sport was killed by the Low Reminiscence Killer, or on Android 11 and later examine the ApplicationExitInfo to see if the sport was terminated due to REASON_LOW_MEMORY.
  4. Keep away from memory thrashing: this happens when there’s low however inadequate reminiscence to kill the sport. You may detect this by way of system tracing, and will scale back the general reminiscence footprint to keep away from this subject.
  5. Use the Android Profiler and other tools to examine your reminiscence utilization.

Implementing Graphics in Android

Thirdly, we’ve acquired questions on implementing graphics in Android. You will have the next choices: OpenGL ES or Vulkan graphics APIs:

  1. Learn to configure OpenGL ES graphics in your C++ recreation engine by initializing variables, rendering with the sport loop, scenes and objects.
  2. Learn our Vulkan guides to learn to draw a dice, compile shaders, setup validation layers, and different finest practices.

Try the Q&A video to view the highest questions on AGDK and go to for our newest assets for Android recreation growth.

Source link

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button