Android Game SDK Launched
Written by Lucy Black   
Friday, 13 December 2019

Google has launched the Android Game SDK, a set of libraries for Android game developers.

The first library to be launched is designed to help developers with frame pacing, the synchronization of a game's rendering loop with the OS display subsystem and underlying display hardware.

Writing about the new release, Dan Galpin, Google Developer Advocate, explained that Android's display subsystem is designed to avoid tearing that occurs when the display hardware switches to a new frame in the middle of an update. To stop this happening, it buffers past frames, and if it detects late frame submissions, repeats the display of the old frames. This can cause strange behavior when game render loops run at a different rate to the native display hardware because of mismatches in synchronization.

The Frame Pacing library uses Android's Choreographer API for synchronization with the display subsystem, using presentation timestamp extensions on both OpenGL and Vulkan APIs to make sure frames are presented at the proper time, and sync fences to avoid buffer stuffing. Multiple refresh rates are handled if supported by the device, giving a game more flexibility in presenting a frame. For a device that supports a 60 Hz refresh rate as well as 90 Hz, a game that cannot produce 60 frames per second can drop to 45 FPS instead of 30 FPS to remain smooth. The library detects the expected game frame rate and auto-adjusts frame presentation times accordingly. The Frame Pacing library allows games to take advantage of higher refresh rate 90 and 120 Hz displays, while also making it easy to lock the refresh rate to a desired value, regardless of the underlying display refresh rate.

The Frame Pacing library is built into Unity versions 2019.2 and beyond. To use it, you just select the optimized Frame Pacing checkbox under Android Settings to enable smoother frame rates for your game. The developers say that if you have source to your game engine, it's straightforward to integrate the library into your OpenGL or Vulkan renderer.

More Information

Games SDK Download

Related Articles

Android Studio 3.5 - When Will It Be Good?

No More Android Sweet Treats

Developing Android Apps with Kotlin 

Android Gets Architecture Components 

Android Studio 3.4 - Trying Hard But No Bouquets

Android Studio 3.3 - Trying Harder?

Android Studio 3.2 Released - More Cruft Than Substance

JetPack And Android Studio 3.2 - Not Much New

Chromebook Tablets - The End of Android?

Android Studio 3.1 Released - Widgets Lost

Android KTX - Kotlin Extensions

Kotlin - New Language For Android

Android Studio Moves Toward Java 8

Google's Jack & Jill Android Java Compiler Project Is Dead


To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Azure AI And Pgvector Run Generative AI Directly On Postgres
26/03/2024

It's a match made in heaven. The Azure AI extension enables the database to call into various Azure AI services like Azure OpenAI. Combined with pgvector you can go far beyond full text search. Let's  [ ... ]



Microsoft Introduces .NET Smart Components
01/04/2024

Microsoft has provided a set of .NET Smart Components, described as a set of genuinely useful AI-powered UI components that you can quickly and easily add to .NET apps. The components are prebuilt end [ ... ]


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 17 December 2019 )