About the talk
Gamers want to customize their experience for highest frame rate or greatest battery savings. Android 12 introduced new APIs for games to respond to user preferences. Integrate and test your game today to prepare for upcoming phone launches.
I enjoy shipping products - and the googling, coding, experimenting, organizing, and scrambling to get the job done.View the profile
Hello, my name is Katie Roberts, Hoffman. And I'm a product manager on the Android games team. We've been reimagining, the gaming experience on Android, and what we can do to improve the OS developer ecosystem. Last year, we completed interviews. We've both core and Casual mobile Gamers, to identify valuable gaming experiences to bring to Android 12. We found that users were looking for a variety of in-game utilities such as quick access to screenshots and screen recording to be able to quickly capture and share the Showcase
moments or features. Like Do Not Disturb mode for games away to remain uninterrupted during gameplay. We don't need utilities into a product recall Android game dashboard. Here's a quick overview that shows how easy it is to enable an in-game screenshot shortcut. Take the screenshot and share it all without interrupting the gameplay. And the shortcut bar that houses, the screenshot button can be minimized afterwards to remain hidden. When it's not needed, it can also be relocated. Game dashboard
will be available on a limited set of Android or phones. And we're eager to get your feedback on ways to continue to improve in game experiences. What was most surprising to us in our user research was the user sentiment around game modes, a way to alter the performance. Trade-offs video game? Game mode was identified as the most desired feature, among the users. Be interviewed, including the score and casual gamers. In Android 12, we're introducing. The game-mode apis will reconnect. The user's preference for highest performance for longest, battery life,
with the game itself. Performance mode is our lowest latency. Highest sustained frame rate is particularly helpful when competing against your friends in twitch sensitive games. Conversely for battery saver mode for games. We expect reduce CPU and GPU road. While maintaining acceptable quality done with a goal of extending play time. We should note that the battery saver mode for games, is a separate feature from the system. Battery saver modes is the game mode apis. Represent the user content for
that specific game only and not the system overall. For more balanced experience. We also have standard mode, basically, the default experience a game, would exhibit today without knowledge of the user's preference. The users be interviewed understood and appreciated the Simplicity of these trade-offs willing to take battery reduction for high frame rates in performance mode or accept Fidelity losses to save battery. We received positive feedback from our partners and we're excited to share a quote from our
partners at Samsung. As Mr. Kim shares Samsung continues to strive towards providing the best gaming experience and performance across their vices and we've enjoyed working with them on Android 12 games features. No, let's deep dive into what game mode, apis mean for you as Developers. Game-mode API allows developers to understanding users and 10th on the right hand side. You can see that a user can access the game mode. You are the settings and offer. Clicking on game,
optimization will be able to select one of the supported modes for the game. Developers can query this user intent via the new get game mode system API. The settings are sticking to the game. So the user Ops 4 performance mode for racing game. When that game is subsequently, we watched it will remain in performance mode. The user within change their preference in settings to alter the state. So once the user's intent is ascertained, you have the opportunity to optimize The Experience accordingly. We have a number of
tools and libraries to help with game optimization with more details and other sessions this week and available the windshield. Here we look at a few ways to reduce CPU and GPU loads, which can then be used to increase the target frame rate or reduce battery consumption? For visual studio users, the newly launched, Android game development, extension provides quick access to system profilers to help you optimize the performance of your CPU memory, net worth and energy. We've also recently updated the URI to make it more intuitive.
You can also find these tools bundle with Android Studio. The Android GPS inspector was released in beta last year to walk across in g p u. I p vendors to track down if and efficiencies. As we've engaged with dad's using HEI, we found a number of games that achieve 30% or greater improvements in frame rates, following Jeep, you analysis. The Android GPU inspector team, just a nose, the frame profiler feature. Once a bottleneck has been identified with the system's profilers. Befriend, profiler provides
timing information breakdowns at the render past level allowing you to pinpoint the exact problem. It also lets you explore textures, geometries, shaders render pipelines and more to let you deeply analyze and better understand that Fred. Course, the most common trade-offs in 3D intensive. Games are related to Target framerate and asset Fidelity by using the Android frame. Pacing Library. It's easy to both maintain, stable framerate, but also to change the target framerate, the Android performance tuner provides field.
Metrics were frame rates and Fidelity settings can be further evaluated. Four games that already have in game settings, for various Fidelity and Target frame rates. It's relatively straightforward to integrate the game mode apis to the different in-game settings at launch. We've heard that. Not many gamers are selecting be customised in game settings. And by offering an easy choice between performance and battery saving more users can get the experience there. She game. We understand that. Some games aren't able to be updated, perhaps,
it's an older title. That is still very popular, but could still benefit from some performance or battery savings. We're introducing a concept that we called game-mode interventions in Android 12. This allows the OS to make changes to the game Behavior without having any APK changes directly game mode interventions for an alternative path in the game. Doesn't leverage the game mode apis expect the number and impact of game mode interventions to continue to grow over time and everything even better performance and our
Behavior. One critical stack to enable, this is angle and open-source standardized Glen's translation. Library that sits on top of native Vulcan Driver's list intervene at much lower levels of the stack. For those of you who followed annual development over the past few years, you may recall that it recently became glez 3.1 conformant. We've since been continuing to optimize performance and no, see GPU time improvements on some games. These results aren't Universal, but four games that perform better with
angle. We can run an alternative staff. This intervention is still under development. So let's take a look at the already implemented Window Manager. Back before resizing intervention. With higher-resolution screens mini games don't benefit from rendering at the panels. Native resolution. We've introduced a resizer within Window Manager wear, a game can be resized at scaling factors ranging from 50 to 90% 90 % being an almost negligible resize. In our discussion with doves, you seen a strong interest
particularly in casual games for improving battery. Life is a higher priority than improving Pete. Frates. As you know, is ofttimes hard to get precise and isolated metrics on product improvements. And these metrics may vary depending on the device drivers or other processing occurring at the same time. In a recent game. We measured we found a 13% reduction in battery consumption. Is a 70% reset. On the flip side, the same resizing intervention can also be used to Aid performance,
particularly and James Worthy. Idea of frame rate is just slightly Out Of Reach with a small resize. We can stabilize the frame rate that is reduce the standard deviation of frame rates, resulting in a smoother more enjoyable drink freely experience. Sheerweave Benchmark, a popular action game where the standard deviation was reduced from 6 milliseconds to 3 milliseconds with the resize factor of 70%. At the end of the day, we know that dads are in the best position to decide with the ideal user experience should be for providing three different
Avenues to interact with these API. For the most controlled experience. You can call the game mode, apis directly and alter the game's Behavior. Alternative way, you can test the game mode intervention and determine the appropriate setting that can then be advertised to the device. Or an oem can run their own cube a program to identify appropriate. Game-mode intervention settings. Of course you as the developer have final control of the game mode interventions and can opt out of interventions via madiface changes to summarize. The new game mode apis in
Android 12. Demoed apis, allow you to access the user's preference for performance or battery savings, and these apis will be available on. Select Android 12 devices. Using the tools and libraries we have as part of the Android game development kit, you are in a great position to optimize your game directly. Or you can benefit from the game-mode interventions without needing to modify your APK. If you'd like to learn more, please check out our Android developer website available at the link. Showing. You can try the game mode API and game of intervention on the
Buy this talk
Buy this video
Our other topics
With ConferenceCast.tv, you get access to our library of the world's best conference talks.