Whereas the world is slowly progressing with sooner Web connectivity, and OEMs are iteratively providing extra cupboard space in units, it is nonetheless onerous to maintain up with the speed that video games and another apps have been rising. To fight this development, Google is introducing a brand new Asset Supply API so builders can additional streamline the set up course of for video games so customers can stand up and working even sooner and with much less area used.
The brand new Asset Supply system takes plenty of cues from App Bundles, however provides extra granular management over the supply of every element. Google intends to exchange the 8-year-old technique of constructing 2GB enlargement information that have been put in alongside the bottom APK. That is achieved by breaking enlargement information into three forms of packages: Set up time, on-demand, and quick observe.
- Set up time packages work identical to the previous enlargement information. When a person begins putting in a recreation, each the bottom APK and set up time package deal are downloaded. As quickly as each items are put in, gamers can launch the sport. Just one set up time package deal is allowed and it is capped at 1GB in dimension.
- Quick Comply with packages start downloading after the set up time package deal and base APK are completed putting in. The sport is playable whereas this package deal downloads, and the extra content material could be made accessible as soon as it is completed downloading. For instance, the core sounds, graphics, and first ranges could be saved within the set up time package deal whereas the quick observe package deal accommodates all the maps and assets that are not used till later. There may solely be one quick observe package deal, and it too is capped at 1GB.
- Lastly, on-demand packages are despatched when an app requests them by way of the API. These work loads like break up characteristic APKs, however they can not embody executable code. These are good for issues like minimize scenes, expansions, maps, and different content material that is non-obligatory or solely used later within the recreation. Builders can create many of those, however every on-demand package deal is capped at 512MB.
In complete, there could be as much as 50 asset packs, together with the set up time and quick observe packages. The Play Retailer can optimize modifications to asset packs by delivering solely delta updates. Customers can’t take away the set up time or quick observe packages, however they’re free to delete particular person asset packs to release area.
Google can be bringing the in-app updates characteristic to video games. This presents gamers with a dialog that can be utilized to simply begin an replace to a brand new model straight from inside the recreation. This helps if a recreation completely requires a brand new model to be playable with the sport’s servers. It is now accessible for apps constructed on the SDK, however an implementation for the NDK continues to be in growth. For builders: There’s a closed beta program to start testing in-app updates for video games. you may be a part of right here.
The Play Core SDK extends an API to deal with all the in-code requirements like initiating on-demand downloads and checking if quick observe and on-demand packs are completed putting in.
To increase on the capabilities first launched with App Bundles, the Play Retailer can now additionally differentiate and serve textures which have been compressed in several codecs. Some compression codecs are solely supported on newer units, however Google Play can now establish the codecs supported on every machine and select one of the best format to obtain. There’s a closed beta program to start testing texture compression format concentrating on. you may be a part of right here.
Google has already applied a plugin for Unity to assist asset supply. Likewise, Unreal Engine v4.25 contains assist for the brand new API, and really deprecates the previous enlargement file technique of supply.